name: CI
on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  check:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2

      - name: Install dependencies
        run: yarn

      - name: Check formatting and lints
        run: yarn run check

      - name: Ensure auto-generated files are up-to-date
        run: yarn run ts-node ./meta.ts --ensure-up-to-date --check

      - name: Check tests
        run: yarn run test

      - uses: butlerlogic/action-autotag@ade8d2e19bfcd1e6a91272e2849b4bf4c37a67f1
        with:
          GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
          tag_prefix: v

name: CI
on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  check:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2

      - name: Install dependencies
        run: yarn

      - name: Check formatting and lints
        run: yarn run check

      - name: Ensure auto-generated files are up-to-date
        run: yarn run ts-node ./meta.ts --ensure-up-to-date --check

      - name: Check tests
        run: xvfb-run -a yarn run test

      - uses: butlerlogic/action-autotag@ade8d2e19bfcd1e6a91272e2849b4bf4c37a67f1
        with:
          GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
          tag_prefix: v

Make tests run in Linux in GitHub Actions.
Make tests run in Linux in GitHub Actions.
