fix: review feedback #3
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
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| name: Continuous integration | |
| jobs: | |
| test-rpms: | |
| name: Test srpm and rpm builds | |
| runs-on: ubuntu-latest | |
| container: fedora:latest | |
| steps: | |
| - name: Install dependencies | |
| run: dnf install -y git make node | |
| - name: Install golang | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.25" | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: Build SRPM | |
| run: | | |
| git config --global --add safe.directory /__w/go-fdo-server/go-fdo-server | |
| make srpm | |
| - name: Build RPM | |
| run: | | |
| git config --global --add safe.directory /__w/go-fdo-server/go-fdo-server | |
| make rpm | |
| - name: Fail if the source code has changes after build | |
| uses: NathanielHill/fail-if-changes@master | |
| test-onboarding: | |
| name: Test FIDO device onboarding | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install golang | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.25" | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: Test FIDO device onboarding | |
| run: | | |
| source test/ci/test-onboarding.sh | |
| run_test | |
| - name: Get manufacturer, rendezvous and owner server logs after a failure | |
| if: failure() | |
| run: | | |
| source test/ci/test-onboarding.sh | |
| get_server_logs | |
| - name: Cleanup the environment | |
| if: always() | |
| run: | | |
| source test/ci/test-onboarding.sh | |
| cleanup | |
| test-resale: | |
| name: Test FIDO resale protocol | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: install golang | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.25" | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: Test FIDO resale protocol | |
| run: | | |
| source test/ci/test-resale.sh | |
| run_test | |
| - name: Get manufacturer, rendezvous and owner server logs after failure | |
| if: failure() | |
| run: | | |
| source test/ci/test-resale.sh | |
| get_server_logs | |
| - name: Cleanup the environment | |
| if: always() | |
| run: | | |
| source test/ci/test-resale.sh | |
| cleanup | |
| test-fsim-wget: | |
| name: Test FSIM fdo.wget | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install golang | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.25" | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: Test FSIM fdo.wget | |
| run: | | |
| source test/ci/test-fsim-wget.sh | |
| run_test | |
| - name: Get Manufacturer, Rendezvous and Owner server logs after a failed onboarding | |
| if: failure() | |
| run: | | |
| source test/ci/test-fsim-wget.sh | |
| get_server_logs | |
| - name: Cleanup the environment | |
| if: always() | |
| run: | | |
| source test/ci/test-fsim-wget.sh | |
| cleanup | |
| test-fsim-upload: | |
| name: Test FSIM fdo.upload | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install golang | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.25" | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: Test FSIM fdo.upload | |
| run: | | |
| source test/ci/test-fsim-upload.sh | |
| run_test | |
| - name: Get Manufacturer, Rendezvous and Owner server logs after a failed onboarding | |
| if: failure() | |
| run: | | |
| source test/ci/test-fsim-upload.sh | |
| get_server_logs | |
| - name: Cleanup the environment | |
| if: always() | |
| run: | | |
| source test/ci/test-fsim-upload.sh | |
| cleanup | |
| test-fsim-download: | |
| name: Test FSIM fdo.download | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install golang | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.25" | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: Test FSIM fdo.download | |
| run: | | |
| source test/ci/test-fsim-download.sh | |
| run_test | |
| - name: Get Manufacturer, Rendezvous and Owner server logs after a failed onboarding | |
| if: failure() | |
| run: | | |
| source test/ci/test-fsim-download.sh | |
| get_server_logs | |
| - name: Cleanup the environment | |
| if: always() | |
| run: | | |
| source test/ci/test-fsim-download.sh | |
| cleanup |