-
Notifications
You must be signed in to change notification settings - Fork 440
61 lines (58 loc) · 1.7 KB
/
macOS-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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: "macOS 12"
on:
push:
branches:
- master
- develop
- hotfix
paths:
- Packag*.swift
- web3swift.podspec
- Cartfile
- Sources/**
- 'Tests/**'
- 'web3swift*/**'
- '.github/workflows/**'
pull_request:
branches:
- master
- develop
- unstable
# Temporary develop-X.Y.Z branches may be added and removed from here as we release new versions
- develop-4.0
env:
DEVELOPER_DIR: /Applications/Xcode_14.1.app/Contents/Developer
jobs:
spm:
name: Swift Package Manager 5.7
runs-on: macOS-12
concurrency:
group: spm-${{ github.run_id }}
cancel-in-progress: false
steps:
- uses: actions/checkout@v3
- name: Discover typos
run: |
pip3 install --upgrade pip
pip3 install codespell
codespell # See .codespellrc for args
- name: SwiftLint
run: |
# 1. Make all automated fixes that are possible
# 2. git diff to see what (if any) automated fixes were made
# 3. See https://github.com/realm/SwiftLint#xcode explains why the double run
swiftlint --fix --quiet && git diff && swiftlint --quiet
- name: Resolve dependencies
run: swift package resolve
- name: Build
run: swift build --build-tests
- name: Install ganache
run: npm install ganache --global
- name: Start ganache in background
run: ganache &
- name: Wait till ganache starts
run: sleep 1
- name: Run local tests
run: swift test --skip-build -c debug --filter localTests
- name: Run remote tests
run: swift test --skip-build -c debug --filter remoteTests