Skip to content

Commit

Permalink
Upgrade @actions/artifact actions
Browse files Browse the repository at this point in the history
  • Loading branch information
maennchen committed Dec 15, 2023
1 parent a91a6da commit 54d2fcd
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/part_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
docs-bdepsuild-{{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}-
- run: mix deps.get
- run: mix docs
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: docs
path: doc
Expand All @@ -53,7 +53,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: docs
path: docs
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/part_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
mix_hex_build-deps-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-
- run: mix deps.get
- run: mix hex.build --output package.tar
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: package
path: package.tar
Expand All @@ -87,7 +87,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: package
path: .
Expand Down
41 changes: 19 additions & 22 deletions .github/workflows/part_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ jobs:
eunit-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-
- run: rebar3 eunit --cover --cover_export_name "eunit-${{ steps.setupBEAM.outputs.otp-version }}"
continue-on-error: ${{ matrix.unstable }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: eunit-coverage
name: eunit-coverage-${{ matrix.otp }}
path: "_build/test/cover/eunit-${{ steps.setupBEAM.outputs.otp-version }}.coverdata"

conformance:
Expand Down Expand Up @@ -154,9 +154,9 @@ jobs:
ct-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-
- run: rebar3 ct --cover --cover_export_name "ct-${{ steps.setupBEAM.outputs.otp-version }}"
continue-on-error: ${{ matrix.unstable }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ct-coverage
name: ct-coverage-${{ matrix.otp }}
path: _build/test/cover/ct-${{ steps.setupBEAM.outputs.otp-version }}.coverdata

mix_test:
Expand Down Expand Up @@ -203,9 +203,9 @@ jobs:
- run: mix deps.get
- run: mix test --cover --export-coverage "mix_test-${{ steps.setupBEAM.outputs.elixir-version }}"
continue-on-error: ${{ matrix.unstable }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: mix_test-coverage
name: mix_test-coverage-${{ matrix.elixir }}
path: cover/mix_test-${{ steps.setupBEAM.outputs.elixir-version }}.coverdata

coverage:
Expand All @@ -228,18 +228,15 @@ jobs:
key: mix_test_coverage-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}-${{ hashFiles('mix.exs') }}
restore-keys: |
mix_test_coverage-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}-
- uses: actions/download-artifact@v3
with:
name: ct-coverage
path: cover
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: eunit-coverage
path: cover
- uses: actions/download-artifact@v3
with:
name: mix_test-coverage
path: cover
path: artifacts
- name: Unpack Artifacts
run: |
mkdir cover
mv artifacts/*/*.coverdata cover
rm -rf artifacts
ls cover
- uses: actions/cache@v3
with:
path: deps
Expand All @@ -248,7 +245,7 @@ jobs:
mix_test_coverage-deps-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ steps.setupBEAM.outputs.elixir-version }}-
- run: mix deps.get
- run: mix test.coverage
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: coverage-report
path: cover
Expand All @@ -273,19 +270,19 @@ jobs:
key: cover-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-${{ hashFiles('rebar.config') }}
restore-keys: |
cover-${{ runner.os }}-${{ steps.setupBEAM.outputs.otp-version }}-
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: ct-coverage
path: _build/test/cover/
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: eunit-coverage
path: _build/test/cover/
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: mix_test-coverage
path: _build/test/cover/
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: coverage-report
path: _build/test/cover/
Expand Down

0 comments on commit 54d2fcd

Please sign in to comment.