-
-
Notifications
You must be signed in to change notification settings - Fork 36
36 lines (33 loc) · 1.13 KB
/
test.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
36
name: test
on:
repository_dispatch:
types:
- test-command
jobs:
test:
name: Test
runs-on: macos-latest
steps:
# checkout the current PR of `ComposableRequest`.
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }}
ref: ${{ github.event.client_payload.pull_request.head.sha }}
# filter updates.
- uses: dorny/paths-filter@v2
id: changes
with:
base: ${{ github.event.client_payload.pull_request.base.sha }}
ref: ${{ github.event.client_payload.pull_request.head.sha }}
filters: |
src:
- '**/*.swift'
# run all tests.
- name: Test
if: steps.changes.outputs.src == 'true'
run: swift test --parallel --enable-test-discovery
env:
SECRET: ${{ secrets.SECRET }}
PASSWORD: ${{ secrets.PASSWORD }}