Skip to content

Commit

Permalink
test: Test coverage using Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
amosavian committed Jun 18, 2024
1 parent 57f47a6 commit 657e6af
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow will submit
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift

name: Codecov

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
coverage_test:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-14, ubuntu-latest]
swift: ["5.10", "5.9"]
timeout-minutes: 60
steps:
- uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v4
- name: Get swift version
run: swift --version
- name: Run tests
run: swift test -v
- name: Submit code coverage
uses: vapor/swift-codecov-action@v0.3
with:
codecov_token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 657e6af

Please sign in to comment.