fix(factory): make artifact inspection deterministic #29
Workflow file for this run
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: Factory CI | |
| on: | |
| pull_request: | |
| paths: | |
| - '.dockerignore' | |
| - 'factory/**' | |
| - '.github/workflows/guide-draft.yml' | |
| - '.github/workflows/factory-ci.yml' | |
| - 'go/internal/guidecheck/**' | |
| - 'go/cmd/lint-guide/**' | |
| - 'FACTORY.md' | |
| - 'mise.toml' | |
| push: | |
| branches: [main] | |
| paths: | |
| - '.dockerignore' | |
| - 'factory/**' | |
| - '.github/workflows/guide-draft.yml' | |
| - '.github/workflows/factory-ci.yml' | |
| - 'go/internal/guidecheck/**' | |
| - 'go/cmd/lint-guide/**' | |
| - 'FACTORY.md' | |
| - 'mise.toml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| fetch-depth: 0 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go/go.mod | |
| - name: Factory tests | |
| run: bash factory/tests/run.sh | |
| - name: Shellcheck | |
| run: shellcheck factory/scripts/*.sh factory/tests/*.sh | |
| - name: Guidecheck tests | |
| working-directory: go | |
| run: go test ./internal/guidecheck ./cmd/lint-guide | |
| - name: Build factory image | |
| run: | | |
| docker build --build-arg KIT_VERSION=0.1.98 \ | |
| --build-arg KIT_SHA256=7d14561469ced8af21df1075a9071d04a7bad1b1c5ff90d685142d3231abae85 \ | |
| -f factory/Dockerfile . |