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

chore(deps): update ci github-actions (major) #1011

Merged
merged 3 commits into from
Oct 15, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 13 additions & 13 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: yarn-cache
uses: c-hive/gha-yarn-cache@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
uses: actions/setup-node@v3
id: yarn-cache
with:
node-version: 14.x
cache: 'yarn'
- if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile

Expand All @@ -25,11 +25,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: c-hive/gha-yarn-cache@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 14.x
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn lint --max-warnings 0
- run: yarn checkTs
Expand All @@ -40,15 +40,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: c-hive/gha-yarn-cache@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 14.x
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn test --coverage
- name: 'Upload coverage report'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: jest-coverage
path: coverage
Expand All @@ -59,11 +59,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: c-hive/gha-yarn-cache@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 14.x
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: docker-compose pull
- uses: satackey/action-docker-layer-caching@v0.0.11
Expand All @@ -79,7 +79,7 @@ jobs:
interval: 500
- run: yarn cypress:run
- name: 'Upload coverage report'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: cypress-coverage
path: cypress-coverage
Expand All @@ -92,11 +92,11 @@ jobs:
- uses: actions/checkout@v3
- name: Download coverage reports
uses: actions/download-artifact@v3
- uses: codecov/codecov-action@v2
- uses: codecov/codecov-action@v3
with:
files: ./jest-coverage/coverage-final.json
flags: jest
- uses: codecov/codecov-action@v2
- uses: codecov/codecov-action@v3
with:
files: ./cypress-coverage/coverage-final.json
flags: cypress
6 changes: 3 additions & 3 deletions .github/workflows/dump-validators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: c-hive/gha-yarn-cache@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 14.x
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn dump-validators
- name: Create Pull Request with updated dumped validators
# https://github.com/peter-evans/create-pull-request
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
commit-message: 'Update dumped validators'
Expand Down
22 changes: 9 additions & 13 deletions .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,12 @@ env: # Comment env block if you do not want to apply fixes
APPLY_FIXES_EVENT: pull_request # Decide which event triggers application of fixes in a commit or a PR (pull_request, push, all)
APPLY_FIXES_MODE: commit # If APPLY_FIXES is used, defines if the fixes are directly committed (commit) or posted in a PR (pull_request)

jobs:
# Cancel duplicate jobs: https://github.com/fkirc/skip-duplicate-actions#option-3-cancellation-only
cancel_duplicates:
name: Cancel duplicate jobs
runs-on: ubuntu-latest
steps:
- uses: fkirc/skip-duplicate-actions@v4
with:
github_token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
# Cancel duplicate jobs
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
name: Mega-Linter
runs-on: ubuntu-latest
Expand All @@ -37,11 +33,11 @@ jobs:
fetch-depth: 0

# Install dependencies
- uses: c-hive/gha-yarn-cache@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 14.x
cache: 'yarn'
- run: yarn install --frozen-lockfile

# Check if all i18n terms in code are synced with source (English) translation file.
Expand Down Expand Up @@ -69,7 +65,7 @@ jobs:
# Upload Mega-Linter artifacts
- name: Archive production artifacts
if: ${{ success() }} || ${{ failure() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: Mega-Linter reports
path: |
Expand All @@ -80,7 +76,7 @@ jobs:
- name: Create Pull Request with applied fixes
id: cpr
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && !contains(github.event.head_commit.message, 'skip fix')
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
commit-message: '[Mega-Linter] Apply linters automatic fixes'
Expand Down