diff --git a/.github/workflows/check-and-test.yml b/.github/workflows/check-and-test.yml new file mode 100644 index 0000000..83ec577 --- /dev/null +++ b/.github/workflows/check-and-test.yml @@ -0,0 +1,23 @@ +name: Check & Test + +on: + push: + branches: ['main'] + pull_request: + branches: ['main'] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: '20.x' + - run: yarn install --frozen-lockfile + - run: yarn check:all + - run: yarn test