PLT-1209 security(gha): Pin all github actions to a fixed sha via ratchet #1
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| macos: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # ratchet:actions/checkout@v1 | |
| - name: Build and Test | |
| run: swift test | |
| linux: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| swift: | |
| - "5.1" | |
| - "5.2" | |
| - "5.3" | |
| - latest | |
| container: | |
| image: swift:${{ matrix.swift }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # ratchet:actions/checkout@v1 | |
| - name: Build and Test | |
| run: swift test --enable-test-discovery |