-
Notifications
You must be signed in to change notification settings - Fork 8
39 lines (32 loc) · 803 Bytes
/
test.yml
File metadata and controls
39 lines (32 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: main
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
swiftver:
- swift:6.0
swiftos:
- jammy
container: ${{ format('{0}-{1}', matrix.swiftver, matrix.swiftos) }}
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Run tests with Thread Sanitizer
run: swift test --sanitize=thread
release:
name: Release
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
- name: Setup
run: npm install semantic-release
- name: Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx semantic-release