Skip to content

fix: Update github actions' Swift version #150

fix: Update github actions' Swift version

fix: Update github actions' Swift version #150

Workflow file for this run

# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
name: Swift
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-and-test:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-15, ubuntu-latest]
swift: ["6.0", "5.10"]
steps:
- uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v4
- name: Get swift version
run: swift --version
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v --enable-code-coverage
- name: Submit code coverage
uses: vapor/[email protected]
with:
codecov_token: ${{ secrets.CODECOV_TOKEN }}