chore(actions): update github actions

This commit is contained in:
Paul Chavard 2022-10-20 11:55:10 +02:00
parent 81b27a88ff
commit ddb230899c
7 changed files with 15 additions and 15 deletions

View file

@ -11,7 +11,7 @@ runs:
using: composite using: composite
steps: steps:
- name: Save test reports - name: Save test reports
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ${{ inputs.results_path }} path: ${{ inputs.results_path }}
key: tests-reports-${{ github.ref }}-${{ github.sha }}-${{ github.run_id }} key: tests-reports-${{ github.ref }}-${{ github.sha }}-${{ github.run_id }}

View file

@ -5,7 +5,7 @@ runs:
using: composite using: composite
steps: steps:
- name: Assets cache - name: Assets cache
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: | path: |
public/assets public/assets

View file

@ -10,7 +10,7 @@ runs:
bundler-cache: true bundler-cache: true
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
cache: 'yarn' cache: 'yarn'

View file

@ -31,7 +31,7 @@ runs:
# #
# The actual retrieval uses the `restore-keys` instead. # The actual retrieval uses the `restore-keys` instead.
- name: Restore previous runs timings - name: Restore previous runs timings
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ${{ inputs.results_path }} path: ${{ inputs.results_path }}
key: single-instance-report-${{ github.sha }}-${{ env.dummy_random_value }} key: single-instance-report-${{ github.sha }}-${{ env.dummy_random_value }}

View file

@ -19,7 +19,7 @@ jobs:
ports: [ "5432:5432" ] ports: [ "5432:5432" ]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Setup the app code and dependancies - name: Setup the app code and dependancies
uses: ./.github/actions/ci-setup-rails uses: ./.github/actions/ci-setup-rails
@ -34,10 +34,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
cache: 'yarn' cache: 'yarn'
@ -68,7 +68,7 @@ jobs:
instances: [0, 1, 2, 3, 4, 5] instances: [0, 1, 2, 3, 4, 5]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Setup the app runtime and dependencies - name: Setup the app runtime and dependencies
uses: ./.github/actions/ci-setup-rails uses: ./.github/actions/ci-setup-rails
@ -88,7 +88,7 @@ jobs:
bin/rspec $SPEC_FILES --format progress --format RspecJunitFormatter --out tmp/rspec_${{ github.job }}_${{ strategy.job-index }}.junit.xml bin/rspec $SPEC_FILES --format progress --format RspecJunitFormatter --out tmp/rspec_${{ github.job }}_${{ strategy.job-index }}.junit.xml
- name: Upload test results for this instance - name: Upload test results for this instance
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: test-reports name: test-reports
path: tmp/rspec_${{ github.job }}_${{ strategy.job-index }}.junit.xml path: tmp/rspec_${{ github.job }}_${{ strategy.job-index }}.junit.xml
@ -110,7 +110,7 @@ jobs:
instances: [0, 1] instances: [0, 1]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Setup the app runtime and dependencies - name: Setup the app runtime and dependencies
uses: ./.github/actions/ci-setup-rails uses: ./.github/actions/ci-setup-rails
@ -130,7 +130,7 @@ jobs:
RAILS_ENV=test bin/rspec $SPEC_FILES --format progress --format RspecJunitFormatter --out tmp/rspec_${{ github.job }}_${{ strategy.job-index }}.junit.xml RAILS_ENV=test bin/rspec $SPEC_FILES --format progress --format RspecJunitFormatter --out tmp/rspec_${{ github.job }}_${{ strategy.job-index }}.junit.xml
- name: Upload test results for this instance - name: Upload test results for this instance
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: test-reports name: test-reports
path: tmp/rspec_${{ github.job }}_${{ strategy.job-index }}.junit.xml path: tmp/rspec_${{ github.job }}_${{ strategy.job-index }}.junit.xml
@ -141,10 +141,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Collect test results from all instances - name: Collect test results from all instances
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: test-reports name: test-reports
path: tmp path: tmp

View file

@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout the latest code - name: Checkout the latest code
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Automatic Rebase - name: Automatic Rebase

View file

@ -7,7 +7,7 @@ jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Sentry Release - name: Sentry Release
uses: getsentry/action-release@v1 uses: getsentry/action-release@v1
env: env: