From a21883d0f2742a9ae20925c5661bd7756322cff0 Mon Sep 17 00:00:00 2001 From: Giulio Galante Date: Mon, 20 Nov 2023 15:55:07 +0100 Subject: [PATCH 1/3] Upgrade all Actions running on Node12 to Node16 --- .github/workflows/test.yml | 14 +++++++------- action.yml | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3c552d8..30c340f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ jobs: name: Test Linux steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - uses: ./ # Uses an action in the root directory id: setup with: @@ -17,7 +17,7 @@ jobs: name: Test Linux (Packages) steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - uses: ./ # Uses an action in the root directory id: setup with: @@ -29,7 +29,7 @@ jobs: name: Test Windows steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - uses: ./ # Uses an action in the root directory id: setup with: @@ -40,7 +40,7 @@ jobs: name: Test MacOS steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - uses: ./ # Uses an action in the root directory id: setup with: @@ -51,7 +51,7 @@ jobs: name: Test MacOS (Packages) steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - uses: ./ # Uses an action in the root directory id: setup with: @@ -63,7 +63,7 @@ jobs: name: Test Installing Private Packages steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - uses: ./ # Uses an action in the root directory id: setup with: @@ -77,7 +77,7 @@ jobs: name: Test Packages With Spaces In Names steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - uses: ./ # Uses an action in the root directory id: setup with: diff --git a/action.yml b/action.yml index dab8ab0..5dc0418 100644 --- a/action.yml +++ b/action.yml @@ -23,5 +23,5 @@ inputs: description: 'An additional User token to authenticate agains the additional repository' required: false runs: - using: 'node12' + using: 'node16' main: 'index.js' \ No newline at end of file From c25e10e19fdce1f617f9b83ebd8c47fd8e2405dc Mon Sep 17 00:00:00 2001 From: Giulio Galante Date: Mon, 20 Nov 2023 18:58:29 +0100 Subject: [PATCH 2/3] Upgrade the OpenTAP version to make the `test-macos-packages` test pass --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 30c340f..4a68622 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -55,7 +55,7 @@ jobs: - uses: ./ # Uses an action in the root directory id: setup with: - version: '9.17.0' + version: '9.19.0' packages: 'Runner,TUI:any' test-user-token: From c66d8bc02c2e15f01367c88cbc2f54983fa9565c Mon Sep 17 00:00:00 2001 From: Giulio Galante Date: Mon, 20 Nov 2023 19:08:19 +0100 Subject: [PATCH 3/3] Skip `test-user-token` if `${{ secrets.OPENTAP_USERTOKEN }}` is not defined --- .github/workflows/test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4a68622..76e2c1e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -60,11 +60,14 @@ jobs: test-user-token: runs-on: ubuntu-20.04 + env: + OPENTAP_USERTOKEN: ${{ secrets.OPENTAP_USERTOKEN }} name: Test Installing Private Packages steps: - name: Checkout uses: actions/checkout@v3 - uses: ./ # Uses an action in the root directory + if: ${{ env.OPENTAP_USERTOKEN != '' }} id: setup with: version: '9.22.0-beta.1'