From 9f82f8eaec870b1ad3e314530e44327616ffd08e Mon Sep 17 00:00:00 2001 From: Simon Seyock Date: Mon, 13 Mar 2023 16:58:23 +0100 Subject: [PATCH] ci: update all github actions --- .github/workflows/coverage.yml | 22 ++++++++++++++-------- .github/workflows/deploy.yaml | 15 +++++++-------- .github/workflows/release.yaml | 11 ++++++----- .github/workflows/test.yml | 8 ++------ 4 files changed, 29 insertions(+), 27 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 4066d1c4..c49311ce 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,21 +1,27 @@ -name: Run coveralls +name: coverage on: - - push - - pull_request + push: + branches: + - main + - dev + pull_request: + branches: + - main + - dev jobs: - build: + coverage: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v3 - - name: Use Node.js 16.x - uses: actions/setup-node@v1 + - name: Use Node.js 18.x + uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x - name: Install dependencies run: npm ci diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 841662f3..9311afa8 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -1,19 +1,18 @@ -name: Deploy +name: deploy on: push: branches: - main jobs: - release: - name: Deploy + deploy: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v3 - name: Setup Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Dependencies run: npm ci - name: Build @@ -26,9 +25,9 @@ jobs: cp -r dist/* pages/lib/jsdoc-type-pratt-parser/ cp -r docs pages/ - name: Deploy - uses: JamesIves/github-pages-deploy-action@4.1.5 + uses: JamesIves/github-pages-deploy-action@4.4.1 with: branch: gh-pages folder: pages clean-exclude: | - index.html \ No newline at end of file + index.html diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b343871e..339af169 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,4 +1,4 @@ -name: Release +name: release on: push: branches: @@ -6,15 +6,16 @@ on: - dev jobs: release: - name: Release runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Setup Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Install dependencies run: npm ci - name: Release diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6b716d99..81070f51 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,20 +1,16 @@ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions -name: Test +name: test on: - push: - branches: - - main - - dev pull_request: branches: - main - dev jobs: - build: + test: runs-on: ubuntu-latest