From 7d5686d95d7ae3d25946f6c0016e81ffbe81505c Mon Sep 17 00:00:00 2001 From: Mattia Panzeri Date: Tue, 15 Nov 2022 18:09:16 +0100 Subject: [PATCH 1/2] chore: upgrade GitHub Actions plugins to latest versions to avoid deprecation warnings --- .github/workflows/codeql.yml | 12 ++++++------ .github/workflows/main.yml | 10 ++++++---- .github/workflows/size.yml | 11 +++++++++-- 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index bf2f0b2..bc47b3a 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,12 +1,12 @@ -name: "CodeQL" +name: 'CodeQL' on: push: - branches: [ "main" ] + branches: ['main'] pull_request: - branches: [ "main" ] + branches: ['main'] schedule: - - cron: "16 20 * * 6" + - cron: '16 20 * * 6' jobs: analyze: @@ -20,7 +20,7 @@ jobs: strategy: fail-fast: false matrix: - language: [ javascript ] + language: [javascript] steps: - name: Checkout @@ -38,4 +38,4 @@ jobs: - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 with: - category: "/language:${{ matrix.language }}" + category: '/language:${{ matrix.language }}' diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bb98ffe..cf4be3d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,7 @@ name: CI + on: [push] + jobs: build: name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }} @@ -11,11 +13,11 @@ jobs: os: [ubuntu-latest, windows-latest, macOS-latest] steps: - - name: Checkout repo - uses: actions/checkout@v2 + - name: Clone repository + uses: actions/checkout@v3 - - name: Use Node ${{ matrix.node }} - uses: actions/setup-node@v1 + - name: Set Node.js version to ${{ matrix.node }} + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml index 6021cda..f1fc15e 100644 --- a/.github/workflows/size.yml +++ b/.github/workflows/size.yml @@ -1,12 +1,19 @@ name: size + on: [pull_request] + jobs: size: runs-on: ubuntu-latest + env: CI_JOB_NUMBER: 1 + steps: - - uses: actions/checkout@v1 - - uses: andresz1/size-limit-action@v1 + - name: Clone repository + uses: actions/checkout@v3 + + - name: Calculate output bundle sizes + uses: andresz1/size-limit-action@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }} From a046365935ec30c9bde7cb0f79ec46f06cdf4429 Mon Sep 17 00:00:00 2001 From: Mattia Panzeri Date: Tue, 15 Nov 2022 17:18:16 +0000 Subject: [PATCH 2/2] chore: upgrade supported NodeJS to currently active ones. Drop NodeJS 12 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cf4be3d..33dfaac 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - node: ['12.x', '14.x', '16.x'] + node: ['14.x', '16.x', '18.x'] os: [ubuntu-latest, windows-latest, macOS-latest] steps: