From 69fe5aa219ffd12150043da79c62ac971356a6c2 Mon Sep 17 00:00:00 2001 From: goosewobbler Date: Wed, 1 May 2024 18:38:54 +0100 Subject: [PATCH] ci: update actions --- .github/workflows/ci.yml | 20 ++++++++++++-------- .github/workflows/expense.yml | 2 +- .github/workflows/release.yml | 6 +++--- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 341a2c40..d1a069c2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,13 +17,13 @@ jobs: node-version: [18.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Cache pnpm modules - uses: actions/cache@v3 + uses: actions/cache@v4 env: cache-name: cache-pnpm-modules with: @@ -31,14 +31,18 @@ jobs: key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}- - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@v3 with: version: 9.0.6 run_install: false - - name: Run headless test - uses: coactions/setup-xvfb@v1.0.1 - with: - run: pnpm run ci + - name: Run Tests + run: | + if [ "$RUNNER_OS" == "Linux" ]; then + xvfb-run pnpm run ci + else + pnpm run ci + fi + shell: bash - name: 🐛 Debug Build uses: stateful/vscode-server-action@v1 if: failure() diff --git a/.github/workflows/expense.yml b/.github/workflows/expense.yml index 4efcfc61..ac0b05ae 100644 --- a/.github/workflows/expense.yml +++ b/.github/workflows/expense.yml @@ -40,7 +40,7 @@ jobs: authorize: runs-on: ubuntu-latest steps: - - uses: octokit/request-action@v2.1.9 + - uses: octokit/request-action@v2.x with: route: GET /orgs/:organisation/teams/:team/memberships/${{ github.actor }} team: technical-steering-committee diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 984ba45f..b582a829 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,14 +32,14 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: 'main' fetch-depth: 0 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18.x - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@v3 with: version: 9.0.6 run_install: false