Fixes #243: Installer should support GPG verification #82
Workflow file for this run
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: Test | |
on: | |
pull_request: | |
jobs: | |
shellcheck: | |
name: Shellcheck | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install shellcheck | |
run: sudo apt-get install -y shellcheck | |
- name: Run shellcheck | |
working-directory: src | |
run: shellcheck -o all install-opentofu.sh | |
linux: | |
name: Linux | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
strategy: | |
fail-fast: true | |
matrix: | |
distro: [alpine, debian, fedora, opensuse, rocky, ubuntu] | |
method: [brew, repo, standalone] | |
shell: [ash, bash, dash, ksh, zsh] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Cosign | |
uses: sigstore/[email protected] | |
- name: Test | |
env: | |
DISTRO: ${{ matrix.distro }} | |
METHOD: ${{ matrix.method }} | |
SH: ${{ matrix.shell }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
working-directory: tests/linux | |
run: ./test.sh | |
macos: | |
name: MacOS | |
runs-on: macos-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
method: [brew, standalone] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Cosign | |
uses: sigstore/[email protected] | |
- name: Test | |
working-directory: tests/macos | |
run: ./${{ matrix.method }}.sh | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
widows: | |
name: Windows | |
runs-on: windows-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
method: [standalone] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Cosign | |
uses: sigstore/[email protected] | |
- name: Test | |
working-directory: tests\windows | |
run: .\test.ps1 -method "${{ matrix.method }}" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |