Skip to content

Commit 66b19fe

Browse files
authoredJan 10, 2023
Update all actions to remove all warnings (#44)
1 parent eea442f commit 66b19fe

5 files changed

+23
-26
lines changed
 

‎.github/workflows/check-build.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Summary:
2-
# Test if the the GitHub Action builds correctly.
2+
# Test if the GitHub Action builds correctly.
33
# Makes sure the GitHub Action builds when being built by GitHub Actions.
44
#
5-
# See https://github.com/actions/checkout https://github.com/actions/checkout/releases/tag/v2
5+
# See https://github.com/actions/checkout https://github.com/actions/checkout/releases/tag/v3
66

77
name: 'GitHub Action build test'
88
on:
@@ -13,9 +13,9 @@ on:
1313

1414
jobs:
1515
run-build-test:
16-
runs-on: ubuntu-18.04
16+
runs-on: ubuntu-22.04
1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
1919
- run: |
2020
yarn
2121
yarn build:once

‎.github/workflows/run-example-deployment.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ on:
77

88
jobs:
99
run-example-deployment:
10-
runs-on: ubuntu-18.04
10+
runs-on: ubuntu-22.04
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313

1414
# Extracts GitHub metadata (branch name, etc.)
1515
- name: Expose GitHub slug/short variables # See https://github.com/rlespinasse/github-slug-action#exposed-github-environment-variables
16-
uses: rlespinasse/github-slug-action@v3.x # See https://github.com/rlespinasse/github-slug-action
16+
uses: rlespinasse/github-slug-action@v4.4.0 # See https://github.com/rlespinasse/github-slug-action
1717

1818
- uses: ./
1919
with:

‎.github/workflows/run-integration-test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ on:
77

88
jobs:
99
run-integration-test:
10-
runs-on: ubuntu-18.04
10+
runs-on: ubuntu-22.04
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313
- run: yarn # Install all dependencies
1414
- uses: ./
1515
with:
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,36 @@
11
# Summary:
22
# Run Unit and coverage tests, then upload it to Code Climate dashboard
33
#
4-
# See https://github.com/actions/checkout https://github.com/actions/checkout/releases/tag/v1
5-
# See https://github.com/paambaati/codeclimate-action https://github.com/paambaati/codeclimate-action/tree/v2.7.5
4+
# See https://github.com/actions/checkout https://github.com/actions/checkout/releases/tag/v3
5+
# See https://github.com/paambaati/codeclimate-action https://github.com/paambaati/codeclimate-action/tree/v3.2.0
66

77
name: Update Code Climate test coverage
88

99
on:
1010
push:
1111
branches:
12-
- 'main' # Change this branch name by your CodeClimate "main" branch use
12+
- main # Change this branch name by your CodeClimate "main" branch use
1313

1414
jobs:
1515
# Configures the deployment environment, install dependencies (like node, npm, etc.) that are requirements for the upcoming jobs
1616
# Ex: Necessary to run `yarn test:coverage`
1717
setup-environment:
18-
name: Setup deployment environment (Ubuntu 18.04 - Node 12.x)
19-
runs-on: ubuntu-18.04
18+
name: Setup deployment environment (Ubuntu 22.04 - Node 18.x)
19+
runs-on: ubuntu-22.04
2020
steps:
2121
- name: Installing node.js
22-
uses: actions/setup-node@v1 # Used to install node environment - XXX https://github.com/actions/setup-node
22+
uses: actions/setup-node@v3 # Used to install node environment - XXX https://github.com/actions/setup-node
2323
with:
24-
node-version: '12.x' # Use the same node.js version as the one Vercel's uses (currently node12.x)
24+
node-version: 18 # Use the same node.js version as the one Vercel's uses (currently node18.x)
2525
run-tests-coverage:
2626
name: Run tests coverage and send report to Code Climate
27-
runs-on: ubuntu-18.04
27+
runs-on: ubuntu-22.04
2828
steps:
29-
- uses: actions/checkout@v1
29+
- uses: actions/checkout@v3
3030
- name: Installing dependencies
3131
run: yarn install
32-
- uses: paambaati/codeclimate-action@v2.7.5
32+
- uses: paambaati/codeclimate-action@v3.2.0
3333
env:
34-
# XXX Necessary for running tests properly (required). Do not generate the token from a Vercel account with actual production usage. (use a dummy account)
35-
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} # XXX Define this secret in "Github repo > Settings > Secrets", you can get it from Vercel at https://vercel.com/account/tokens
36-
VERCEL_DOMAIN: ${{ secrets.VERCEL_DOMAIN }} # XXX Define this secret in "Github repo > Settings > Secrets", it should use a domain the VERCEL_TOKEN you provided has access to
3734
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} # XXX Define this secret in "Github repo > Settings > Secrets", you can get it from Code Climate in "Repo settings > Test coverage".
3835
with:
3936
coverageCommand: yarn test:coverage

‎README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ on:
2020

2121
jobs:
2222
run-example-deployment:
23-
runs-on: ubuntu-18.04
23+
runs-on: ubuntu-22.04
2424
steps:
25-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v3
2626
- uses: UnlyEd/github-action-deploy-on-vercel@latest
2727
with:
2828
command: "vercel examples/static-deployment --confirm --debug --token ${{ secrets.VERCEL_TOKEN }}"
@@ -105,9 +105,9 @@ on:
105105
106106
jobs:
107107
run-example-deployment:
108-
runs-on: ubuntu-18.04
108+
runs-on: ubuntu-22.04
109109
steps:
110-
- uses: actions/checkout@v2
110+
- uses: actions/checkout@v3
111111
112112
# Extracts GitHub metadata (branch name, etc.)
113113
- name: Expose GitHub slug/short variables # See https://github.com/rlespinasse/github-slug-action#exposed-github-environment-variables

0 commit comments

Comments
 (0)
Please sign in to comment.