Skip to content

Commit

Permalink
chore(ci): add test-alpine job
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed Jan 11, 2024
1 parent 84244d3 commit 630cb1c
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:

# Remaining circleci jobs to port
# - build-aarch64:
# - test-alpine:
# - test-alpine-proxy:
# - test-alpine-without-git:
# - test-aarch64:
Expand Down Expand Up @@ -48,7 +47,7 @@ jobs:
build-alpine:
runs-on: ubuntu-latest
container: alpine:3.18.4@sha256:eece025e432126ce23f223450a0326fbebde39cdf496a85d8c016293fc851978
container: alpine:3.19.0@sha256:51b67269f354137895d43f3b3d810bfacd3945438e94dc5ac55fdac340352f48
needs: build-linux-and-osx
steps:
- name: Checkout
Expand Down Expand Up @@ -179,6 +178,36 @@ jobs:
path: |
output_osx.txt
test-alpine:
runs-on: ubuntu-latest
container: alpine:3.19.0@sha256:51b67269f354137895d43f3b3d810bfacd3945438e94dc5ac55fdac340352f48
steps:
- name: Install git
run: |
apk update
apk add git
- name: Checkout
uses: actions/checkout@v4
- uses: actions/download-artifact@v3
with:
name: artifact
- name: Remove test coverage files
run: rm -rf *.coverage.txt coverage-report-test.json test/fixtures || echo
- name: Run Alpine binary -f (dry run)
run: |
NODE_DEBUG=vm out/codecov-alpine -v -f /root/project/coverage-alpine/cobertura-coverage.xml -F alpine -d -Z -e CIRCLE_BRANCH -t ${{ secrets.CODECOV_TOKEN }} >> output_alpine.txt
- name: Run Alpine binary auto-detect (dry run)
run: |
out/codecov-alpine -F alpine -v -d -Z -e CIRCLE_BRANCH -t ${{ secrets.CODECOV_TOKEN }} >> output_alpine.txt
- name: Run Alpine binary (upload)
run: out/codecov-alpine -F alpine -v -Z -e CIRCLE_BRANCH -t ${{ secrets.CODECOV_TOKEN }}
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
if-no-files-found: error
path: |
output_alpine.txt
test-windows:
runs-on: windows-latest
needs: build-windows
Expand Down

0 comments on commit 630cb1c

Please sign in to comment.