Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
heppu committed Nov 14, 2023
1 parent b27373f commit 59cd4a9
Show file tree
Hide file tree
Showing 5 changed files with 583 additions and 134 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Quay.io
uses: docker/login-action@v3
with:
Expand All @@ -30,18 +30,21 @@ jobs:

- name: Run unit tests
run: mage go:unittest


- name: Generate cover profile
run: mage go:coverProfile

- name: Upload test coverage to codecov
uses: elisa-actions/codecov-action@v4-elisa
with:
url: https://codecov.csf.elisa.fi

- name: Lint
run: mage go:lint

- name: Vuln check
run: mage go:vulncheck

- name: Build binary
run: mage go:build

Expand All @@ -61,6 +64,6 @@ jobs:
REPLACE_REGEX: (quay.io/elisaoyj/networkpolicy-controller:sha-)(.*)
COMMIT_TEXT: update networkpolicy-controller image to {{.SHA}}
FILE_PATH: templates/go/core/networkpolicy-controller/latest.yaml
run : |
run: |
curl -s https://${{ secrets.SRE_MEDIA_URL }}/repo-updater/repo-updater -o repo-updater && chmod +x repo-updater
./repo-updater publish
15 changes: 9 additions & 6 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,32 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Run unit tests
run: mage go:unittest
run: mage go:unitTest

- name: Generate cover profile
run: mage go:coverProfile

- name: Upload test coverage to codecov
uses: elisa-actions/codecov-action@v4-elisa
with:
url: https://codecov.csf.elisa.fi

- name: Lint
run: mage go:lint

- name: Vuln check
run: mage go:vulncheck
run: mage go:vulnCheck

- name: License check
run: mage go:licensecheck
run: mage go:licenses

- name: Build binary
run: mage go:build

- name: Build image
env:
DOCKER_IMAGE_TAGS: sha-${{ github.event.pull_request.head.sha }}
run: mage docker:image
run: mage docker:build

automerge:
needs: [build]
Expand Down
Loading

0 comments on commit 59cd4a9

Please sign in to comment.