Skip to content

Commit

Permalink
Upgrade @actions/artifact actions (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
maennchen authored Dec 15, 2023
1 parent a91a6da commit b5c266d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ report. If the issue is confirmed as a vulnerability, we will open a Security
Advisory. This project follows a 90 day disclosure timeline.

If you have questions about reporting security issues, email the vulnerability
management team: [`[email protected]`](mailto:[email protected])
management team: [`[email protected]`](mailto:[email protected])
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
54 changes: 21 additions & 33 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,14 @@ 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
- uses: actions/download-artifact@v4
with:
name: ct-coverage
path: cover
- uses: actions/download-artifact@v3
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
- uses: actions/cache@v3
with:
path: deps
Expand All @@ -248,7 +244,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,22 +269,14 @@ 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
with:
name: eunit-coverage
path: _build/test/cover/
- uses: actions/download-artifact@v3
with:
name: mix_test-coverage
path: _build/test/cover/
- uses: actions/upload-artifact@v3
with:
name: coverage-report
path: _build/test/cover/
path: artifacts
- name: Unpack Artifacts
run: |
mkdir -p _build/test/cover/
mv artifacts/*/*.coverdata _build/test/cover/
rm -rf artifacts
- run: rebar3 as test compile
- run: rebar3 as test coveralls send
env:
Expand Down

0 comments on commit b5c266d

Please sign in to comment.