Skip to content

Update test.yml

Update test.yml #30

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: test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: swift-actions/setup-swift@a67084227a6074f94e6a2dcd3b141f515e8f0acf
with:
swift-version: "main-snapshot"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: build
run: swift build
- name: run tests
run: swift test