Skip to content

Commit

Permalink
Merge pull request #1011 from oasisprotocol/renovate/major-ci-github-…
Browse files Browse the repository at this point in the history
…actions

chore(deps): update ci github-actions (major)
  • Loading branch information
lukaw3d committed Oct 15, 2022
2 parents 0888752 + 8653d74 commit f7b3440
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 29 deletions.
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

0 comments on commit f7b3440

Please sign in to comment.