Skip to content

chore(deps): bump the gomod group across 1 directory with 19 updates #451

chore(deps): bump the gomod group across 1 directory with 19 updates

chore(deps): bump the gomod group across 1 directory with 19 updates #451

---
name: Testing - Acceptance
permissions: {}
# Split until path filtering for jobs added
# https://github.qkg1.topmunity/t/path-filtering-for-jobs-and-steps/16447
on:
push:
branches: [master]
paths:
- "**.go"
- "go.mod"
- "go.sum"
- "**.bash"
- "**.bats"
pull_request:
branches: [master]
paths:
- "**.go"
- "go.mod"
- "go.sum"
- "**.bash"
- "**.bats"
jobs:
build:
name: Build kubesec
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
with:
go-version-file: go.mod
- name: Build kubesec
run: |
make build
- name: Upload kubesec
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: kubesec
path: dist/kubesec
acceptance:
name: Bats ${{matrix.test}} tests
runs-on: ubuntu-latest
needs: build
env:
REMOTE_PORT: "8080"
strategy:
fail-fast: false
matrix:
test: ["acceptance", "remote"]
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
# needed for bats tests
submodules: true
- name: Download kubesec
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: kubesec
path: dist
- name: Set kubesec as executable again
run: |
chmod +x ./dist/kubesec
- name: Start kubesec http
if: matrix.test == 'remote'
run: |
echo "REMOTE_URL=localhost:$REMOTE_PORT" >> $GITHUB_ENV
./dist/kubesec http $REMOTE_PORT 2>error.log >output.log &
- name: Run bats acceptance tests against built binary
run: |
make test-${{ matrix.test }}-built