chore: pin GitHub Actions to commit SHAs #155
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: build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| jobs: | |
| keysmith-darwin: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: | |
| - macos-10.15 | |
| - macos-latest | |
| steps: | |
| - uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0 | |
| - name: 'Install Bats Core' | |
| run: ./.github/workflows/install/darwin/bats-core.sh | |
| - name: 'Install Bats Support' | |
| run: ./.github/workflows/install/darwin/bats-support.sh | |
| - name: 'Install Go' | |
| run: ./.github/workflows/install/darwin/go.sh | |
| - name: 'Install Go Packages' | |
| run: go get ./... | |
| - name: 'Build Keysmith' | |
| run: go build | |
| - name: 'Test Keysmith' | |
| run: bats e2e/bash/test.bats | |
| keysmith-linux: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-18.04 | |
| - ubuntu-20.04 | |
| - ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0 | |
| - name: 'Install Bats Core' | |
| run: ./.github/workflows/install/linux/bats-core.sh | |
| - name: 'Install Bats Support' | |
| run: ./.github/workflows/install/linux/bats-support.sh | |
| - name: 'Install Go' | |
| run: ./.github/workflows/install/linux/go.sh | |
| - name: 'Install Go Packages' | |
| run: go get ./... | |
| - name: 'Build Keysmith' | |
| run: go build | |
| - name: 'Test Keysmith' | |
| run: bats e2e/bash/test.bats | |
| keysmith-windows: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: | |
| - windows-2016 | |
| - windows-2019 | |
| - windows-latest | |
| steps: | |
| - uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0 | |
| - name: 'Install Go' | |
| run: .\.github\workflows\install\windows\go.ps1 | |
| - name: 'Install Go Packages' | |
| run: go get ./... | |
| - name: 'Build Keysmith' | |
| run: go build | |
| - name: 'Test Keysmith' | |
| run: Invoke-Pester e2e\powershell\test.ps1 |