zero: report resource bundle reconciliation status #9230
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 | |
permissions: | |
contents: read | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
integration: | |
strategy: | |
fail-fast: false | |
matrix: | |
go-version: [1.20.x] | |
node-version: [16.x] | |
platform: [ubuntu-latest] | |
deployment: [multi, single] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac | |
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe | |
with: | |
go-version: ${{ matrix.go-version }} | |
cache: false | |
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: yarn | |
cache-dependency-path: ui/yarn.lock | |
- name: set env vars | |
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
- name: build dev docker image | |
run: | | |
./scripts/build-dev-docker.bash | |
- name: start cluster | |
run: | | |
export POMERIUM_TAG=dev | |
cd ./integration/clusters/${{matrix.deployment}} | |
docker-compose up -d | |
- name: integration tests | |
run: | | |
(cd ./integration/clusters/${{matrix.deployment}} && docker-compose logs -f &) | |
go test -v ./integration/... | |
build: | |
strategy: | |
matrix: | |
go-version: [1.20.x] | |
node-version: [16.x] | |
platform: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac | |
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe | |
with: | |
go-version: ${{ matrix.go-version }} | |
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: yarn | |
cache-dependency-path: ui/yarn.lock | |
- name: build | |
run: | | |
make build-deps | |
make build | |
- name: save binary | |
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 | |
with: | |
path: bin/pomerium* | |
name: pomerium ${{ github.run_id }} ${{ matrix.platform }} | |
retention-days: 1 | |
- name: test | |
run: make cover | |
- uses: jandelgado/gcov2lcov-action@c680c0f7c7442485f1749eb2a13e54a686e76eb5 | |
if: matrix.platform == 'ubuntu-latest' | |
name: convert coverage to lcov | |
with: | |
infile: coverage.txt | |
outfile: coverage.lcov | |
- name: upload to coveralls | |
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 | |
if: matrix.platform == 'ubuntu-latest' | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: coverage.lcov | |
build-docker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 | |
- name: Docker Build | |
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 | |
with: | |
context: . | |
file: ./Dockerfile | |
push: false | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
precommit: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe | |
with: | |
go-version: 1.20.x | |
cache: false | |
- uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 | |
with: | |
python-version: "3.x" | |
- uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 | |
with: | |
extra_args: --show-diff-on-failure --from-ref ${{ | |
github.event.pull_request.base.sha }} --to-ref ${{ | |
github.event.pull_request.head.sha }} | |
env: | |
SKIP: lint |