feat(saas-25129): add option to get values from outside #121
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: testing for PR | |
on: | |
pull_request: | |
jobs: | |
build: | |
name: testing PR build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v3 | |
with: | |
stable: "false" | |
go-version: "1.18" | |
- run: go version | |
- name: Configure git url | |
run: | | |
git config --global url.https://${{ secrets.ARGON_GH_TOKEN }}@github.com/.insteadOf https://github.com/ | |
- name: Run tests | |
env: | |
GOPRIVATE: github.com/argonsecurity/* | |
run: make test | |
- name: Remove git url | |
run: | | |
git config --global url.https://github.com/.insteadOf https://${{ secrets.ARGON_GH_TOKEN }}@github.com/ |