Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update all actions to remove all warnings #44

Merged
merged 2 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/check-build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Summary:
# Test if the the GitHub Action builds correctly.
# Test if the GitHub Action builds correctly.
# Makes sure the GitHub Action builds when being built by GitHub Actions.
#
# See https://github.com/actions/checkout https://github.com/actions/checkout/releases/tag/v2
# See https://github.com/actions/checkout https://github.com/actions/checkout/releases/tag/v3

name: 'GitHub Action build test'
on:
Expand All @@ -13,9 +13,9 @@ on:

jobs:
run-build-test:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: |
yarn
yarn build:once
6 changes: 3 additions & 3 deletions .github/workflows/run-example-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ on:

jobs:
run-example-deployment:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

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

- uses: ./
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:

jobs:
run-integration-test:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: yarn # Install all dependencies
- uses: ./
with:
Expand Down
23 changes: 10 additions & 13 deletions .github/workflows/update-codeclimate-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,36 @@
# Summary:
# Run Unit and coverage tests, then upload it to Code Climate dashboard
#
# See https://github.com/actions/checkout https://github.com/actions/checkout/releases/tag/v1
# See https://github.com/paambaati/codeclimate-action https://github.com/paambaati/codeclimate-action/tree/v2.7.5
# See https://github.com/actions/checkout https://github.com/actions/checkout/releases/tag/v3
# See https://github.com/paambaati/codeclimate-action https://github.com/paambaati/codeclimate-action/tree/v3.2.0

name: Update Code Climate test coverage

on:
push:
branches:
- 'main' # Change this branch name by your CodeClimate "main" branch use
- main # Change this branch name by your CodeClimate "main" branch use

jobs:
# Configures the deployment environment, install dependencies (like node, npm, etc.) that are requirements for the upcoming jobs
# Ex: Necessary to run `yarn test:coverage`
setup-environment:
name: Setup deployment environment (Ubuntu 18.04 - Node 12.x)
runs-on: ubuntu-18.04
name: Setup deployment environment (Ubuntu 22.04 - Node 18.x)
runs-on: ubuntu-22.04
steps:
- name: Installing node.js
uses: actions/setup-node@v1 # Used to install node environment - XXX https://github.com/actions/setup-node
uses: actions/setup-node@v3 # Used to install node environment - XXX https://github.com/actions/setup-node
with:
node-version: '12.x' # Use the same node.js version as the one Vercel's uses (currently node12.x)
node-version: 18 # Use the same node.js version as the one Vercel's uses (currently node18.x)
run-tests-coverage:
name: Run tests coverage and send report to Code Climate
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Installing dependencies
run: yarn install
- uses: paambaati/codeclimate-action@v2.7.5
- uses: paambaati/codeclimate-action@v3.2.0
env:
# XXX Necessary for running tests properly (required). Do not generate the token from a Vercel account with actual production usage. (use a dummy account)
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
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
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".
with:
coverageCommand: yarn test:coverage
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ on:

jobs:
run-example-deployment:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: UnlyEd/github-action-deploy-on-vercel@latest
with:
command: "vercel examples/static-deployment --confirm --debug --token ${{ secrets.VERCEL_TOKEN }}"
Expand Down Expand Up @@ -105,9 +105,9 @@ on:

jobs:
run-example-deployment:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

# Extracts GitHub metadata (branch name, etc.)
- name: Expose GitHub slug/short variables # See https://github.com/rlespinasse/github-slug-action#exposed-github-environment-variables
Expand Down