diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 14b4bd1..4604bbd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,22 +1,29 @@ name: CI on: push: - branches: [main] + branches: + - main pull_request: - branches: [main] + branches: + - main +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true jobs: - build: + main: runs-on: macOS-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - name: Checkout commit + uses: actions/checkout@v2 + - name: Prepare Node.js + uses: actions/setup-node@v2 with: node-version: "14" cache: "yarn" - - name: Install dependencies - run: yarn - - name: Run linting + - name: Install dependencies and build + run: yarn install + - name: Lint files run: yarn lint - name: Run tests run: yarn test