forked from RedMadRobot/figma-export
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 884 Bytes
/
tests.yml
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
name: Test
on:
# Trigger the workflow on push or pull request,
# for all branches, but never trigger on new tags
push:
branches:
- '**'
tags-ignore:
- '**'
pull_request:
branches:
- '**'
jobs:
test:
name: Run tests on macOS
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Select Xcode version
run: sudo xcode-select --switch /Applications/Xcode_14.1.app
- name: Build and test
run: swift test --enable-code-coverage --disable-automatic-resolution
shell: bash
test-linux:
name: Run tests on Linux
runs-on: ubuntu-22.04
container:
image: swift:5.7.1-jammy
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build and test
run: swift test --disable-automatic-resolution --skip XcodeExportTests