From 7ff2c5f220360f822107e61408123cb1787f78f8 Mon Sep 17 00:00:00 2001 From: Ed Preston Date: Sun, 19 Nov 2023 01:33:56 +1100 Subject: [PATCH] chore(ci): general updates (#8) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Thorsten Lünborg --- .github/workflows/ci.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) 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