Skip to content

build(deps): bump the gomod group with 4 updates (#2594) #4742

build(deps): bump the gomod group with 4 updates (#2594)

build(deps): bump the gomod group with 4 updates (#2594) #4742

name: Test melange test command
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions: {}
jobs:
build-melange:
name: Build melange and add to artifact cache
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
with:
egress-policy: block
allowed-endpoints: >
*.blob.core.windows.net:443
*.githubapp.com:443
api.github.com:443
dl.google.com:443
github.com:443
go.dev:443
objects.githubusercontent.com:443
proxy.golang.org:443
raw.githubusercontent.com:443
release-assets.githubusercontent.com:443
storage.googleapis.com:443
sum.golang.org:443
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: "./go.mod"
check-latest: true
- name: build
run: |
make melange
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: melange-${{ github.run_id }}
path: ${{ github.workspace }}/melange
retention-days: 1
test-packages:
name: Test packages
needs:
- build-melange
runs-on: ubuntu-latest-8-core
permissions:
contents: read
steps:
- uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
with:
egress-policy: block
allowed-endpoints: >
*.blob.core.windows.net:443
*.githubapp.com:443
9236a389bd48b984df91adc1bc924620.r2.cloudflarestorage.com:443
_http._tcp.azure.archive.ubuntu.com:443
_https._tcp.dl.google.com:443
_https._tcp.esm.ubuntu.com:443
_https._tcp.motd.ubuntu.com:443
_https._tcp.packages.microsoft.com:443
api.github.com:443
apk.cgr.dev:443
auth.docker.io:443
azure.archive.ubuntu.com:80
dl-cdn.alpinelinux.org:443
dl.google.com:443
esm.ubuntu.com:443
files.pythonhosted.org:443
git.netfilter.org:443
github.com:443
go.dev:443
index.docker.io:443
motd.ubuntu.com:443
objects.githubusercontent.com:443
packages.microsoft.com:443
packages.wolfi.dev:443
ppa.launchpadcontent.net:443
production.cloudflare.docker.com:443
production.cloudfront.docker.com:443
proxy.golang.org:443
pypi.org:443
raw.githubusercontent.com:443
registry-1.docker.io:443
release-assets.githubusercontent.com:443
storage.googleapis.com:443
sum.golang.org:443
time1.google.com:123
time2.google.com:123
time3.google.com:123
time4.google.com:123
us.download.nvidia.com:443
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
# Grab the melange we uploaded above, and install it.
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: melange-${{ github.run_id }}
path: ${{ github.workspace }}/.melange-dir
run-id: ${{ github.run_id }}
- env:
GITHUB_WORKSPACE: ${{ github.workspace }}
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: ./.github/actions/setup-bubblewrap
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: "./go.mod"
check-latest: true
- uses: cue-lang/setup-cue@a93fa358375740cd8b0078f76355512b9208acb1 # v1.0.1
- name: Install QEMU/KVM
run: |
sudo apt-get update
sudo apt-get -y install qemu-system-x86-64 qemu-kvm
- name: Enable KVM group perms
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Run e2e-tests
run: |
make test-e2e