diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a804d4..2919318 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,6 @@ name: 'ci' on: + workflow_dispatch: push: branches: - '**' @@ -7,6 +8,10 @@ on: branches: - main +concurrency: + group: ci-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + permissions: contents: read # to fetch code (actions/checkout) @@ -14,13 +19,13 @@ jobs: build-and-typecheck: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install pnpm uses: pnpm/action-setup@v2 #version is inferred from package.json's packageManager field - name: Set node version to 20 - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 20 cache: 'pnpm' @@ -33,13 +38,13 @@ jobs: unit-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install pnpm uses: pnpm/action-setup@v2 - name: Set node version to 20 - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 20 cache: 'pnpm' @@ -52,13 +57,13 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install pnpm uses: pnpm/action-setup@v2 - name: Set node version to 20 - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 20 cache: 'pnpm' @@ -66,4 +71,4 @@ jobs: - run: pnpm install - name: Lint codebase - run: pnpm run lint \ No newline at end of file + run: pnpm run lint