Use arm64 version of goss #38
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: | |
| - "*" | |
| pull_request: | |
| jobs: | |
| test-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| submodules: recursive | |
| - name: "Workaround: Prepare ~/.local/share/chezmoi" | |
| run: | | |
| mkdir -p "$HOME/.local/share" | |
| ln -s "$(pwd)" "$HOME/.local/share/chezmoi" | |
| - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 | |
| - name: Install goss | |
| run: | | |
| sudo curl -L https://github.com/goss-org/goss/releases/latest/download/goss-darwin-amd64 -o /usr/local/bin/goss | |
| sudo chmod +rx /usr/local/bin/goss | |
| - name: Run test | |
| run: | | |
| ./install.sh | |
| # Run script twice to test idempotency | |
| ./install.sh | |
| GOSS_USE_ALPHA=1 goss validate --format documentation | |
| test-static: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0 | |
| - name: Install dependencies | |
| run: sudo apt install -y zsh | |
| - name: Run test | |
| run: ./test/static.sh | |
| actionlint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - uses: reviewdog/action-actionlint@f00ad0691526c10be4021a91b2510f0a769b14d0 # v1.68.0 |