Move non-legacy examples to Swift Package Manager #1511
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: check | |
on: | |
pull_request: | |
push: | |
branches: main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
runs-on: macOS-15 | |
env: | |
MINT_PATH: ${{ github.workspace }}/mint | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache Mint packages | |
uses: actions/cache@v4 | |
with: | |
path: ${{ env.MINT_PATH }} | |
key: ${{ runner.os }}-mint-${{ hashFiles('**/Mintfile') }} | |
restore-keys: ${{ runner.os }}-mint- | |
- name: Install mint | |
run: brew install mint | |
- name: Bootstrap mint with swiftformat | |
run: mint bootstrap | |
- name: Check | |
run: scripts/style.sh test-only |