Skip to content

Commit

Permalink
update deprecated actions
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenDE committed Feb 10, 2024
1 parent a3f6273 commit c49fb7f
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
sudo apt update
sudo apt install -y inotify-tools
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Elixir
uses: erlef/setup-beam@v1
Expand All @@ -41,7 +41,7 @@ jobs:
otp-version: ${{ matrix.otp }}

- name: Restore deps and _build cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
deps
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Elixir
uses: erlef/setup-beam@v1
Expand All @@ -103,7 +103,7 @@ jobs:
otp-version: ${{ matrix.otp }}

- name: Restore deps and _build cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
deps
Expand All @@ -116,12 +116,12 @@ jobs:
run: mix deps.get --only test

- name: Set up Node.js 18.x
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 18.x

- name: Restore npm cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -131,7 +131,7 @@ jobs:
- name: npm install and test
run: npm run js:test

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: js-unit-coverage
Expand All @@ -155,7 +155,7 @@ jobs:
HOME: /root
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: install unzip
run: apt update && apt -y install unzip
Expand All @@ -167,7 +167,7 @@ jobs:
otp-version: ${{ matrix.otp }}

- name: Restore deps and _build cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
deps
Expand All @@ -180,7 +180,7 @@ jobs:
run: mix deps.get

- name: Restore npm cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -198,21 +198,21 @@ jobs:
npm install
npm run e2e:test
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 7

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: e2e-test-results
path: test/e2e/test-results/
retention-days: 7

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: mix-e2e-coverage
Expand All @@ -227,7 +227,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Elixir
uses: erlef/setup-beam@v1
Expand All @@ -238,7 +238,8 @@ jobs:
- name: Download mix unit coverage
uses: actions/download-artifact@v3
with:
name: mix-test-coverage-26.0-1.15.5
# This needs to be updated when changing the test matrix
name: mix-test-coverage-26-1.15.5

- name: Download mix e2e coverage
uses: actions/download-artifact@v3
Expand All @@ -259,15 +260,15 @@ jobs:
name: e2e-test-results

- name: Set up Node.js 18.x
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 18.x

- name: Merge coverage reports
run: node cover:merge

- name: Upload coverage report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: overall-coverage
path: cover/
Expand Down

0 comments on commit c49fb7f

Please sign in to comment.