Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge build workflows #20

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .github/workflows/build-release.yml

This file was deleted.

25 changes: 17 additions & 8 deletions .github/workflows/build-pr.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Build PR

on:
push:
tags:
- '*'
paths-ignore: # do not trigger for changes:
- README.md
- LICENSE
- CHANGELOG.md
- docs/**
pull_request:
branches: [ main ]
paths-ignore: # do not trigger for changes:
Expand All @@ -10,17 +18,18 @@ on:
- docs/**

jobs:
build:

Build:
runs-on: macos-latest

steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- name: Resolve dependencies
run: swift package resolve
continue-on-error: true
- name: Run tests

- name: Build
run: swift build -v

- name: Test
run: swift test -v
## setting continue-on-error: true will cause failure
## because 'swift test' writes content to stderr
#continue-on-error: true