delete git auth secret when app creation fails & do not create git auth secret if it already exists #192
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: go | |
on: [pull_request] | |
env: | |
GOPRIVATE: github.com/ninech/apis | |
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} | |
jobs: | |
golangci: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '1.21' | |
- run: git config --global url.https://[email protected]/.insteadOf https://github.com/ | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.54 | |
args: --timeout=10m | |
test: | |
name: test | |
container: ninech/controller-test-image:latest | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '1.21' | |
- run: git config --global url.https://[email protected]/.insteadOf https://github.com/ | |
- name: Get dependencies | |
run: go get -v -t -d ./... | |
- name: Test | |
run: go test -v ./... |