Include locked melange config in control section #1924
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 melange test command | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build-melange: | |
name: Build melange and add to artifact cache | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | |
with: | |
go-version-file: './go.mod' | |
check-latest: true | |
- name: build | |
run: | | |
make melange | |
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
with: | |
name: melange-${{ github.run_id }} | |
path: ${{ github.workspace }}/melange | |
retention-days: 1 | |
test-packages: | |
name: Test packages | |
needs: | |
- build-melange | |
# TODO: Set up a larger runner for this. | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
egress-policy: audit | |
# Grab the melange we uploaded above, and install it. | |
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | |
with: | |
name: melange-${{ github.run_id }} | |
path: ${{ github.workspace }}/.melange-dir | |
run-id: ${{ github.run_id }} | |
- run: | | |
sudo mv ${{ github.workspace }}/.melange-dir/melange /usr/bin/melange | |
sudo chmod a+x /usr/bin/melange | |
melange version | |
- run: | | |
sudo apt-get -y install bubblewrap | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | |
with: | |
go-version-file: './go.mod' | |
check-latest: true | |
- name: Run e2e-tests | |
run: | | |
make test-e2e |