name: Build and Test

on:
  pull_request:
  push:
    branches:
      - master
      - releases/*

jobs:

  test:
    strategy:
      matrix:
        runs-on: [ubuntu-latest]
    runs-on: ${{ matrix.runs-on }}

    steps:
      # Clone this repo
      - name: Checkout
        uses: actions/checkout@v2

      # LFS
      - name: LFS checkout
        uses: ./
        with:
          repository: actions/checkout # hardcoded, otherwise doesn't work from a fork
          ref: test-data/v2/lfs
          path: lfs
          lfs: true
      - name: Verify LFS
        shell: bash
        run: __test__/verify-lfs.sh
      - run: ls -la lfs/.git
      - run: ls -la lfs/.git/lfs
      - run: ls -la lfs/.git/lfs/objects