MakeColors/.github/workflows/test.yml

30 lines
607 B
YAML
Raw Normal View History

2020-12-30 14:30:21 +01:00
name: Build and run tests
2020-12-30 14:10:46 +01:00
on:
pull_request:
jobs:
2020-12-30 14:30:21 +01:00
BuildAndTest:
2020-12-30 14:10:46 +01:00
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
2022-10-08 13:04:59 +02:00
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.0'
2020-12-30 14:22:56 +01:00
- name: Cache Swift packages
uses: actions/cache@v2
with:
2020-12-30 14:27:02 +01:00
path: |
.build/checkouts
.build/repositories
.build/workspace-state.json
key: ${{ runner.os }}-${{ hashFiles('Package.resolved') }}
- name: Build
run: swift build
2020-12-30 14:22:56 +01:00
2020-12-30 14:10:46 +01:00
- name: Run tests
run: swift test