Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Commit

Permalink
try moving the env to the test job
Browse files Browse the repository at this point in the history
Signed-off-by: Achille Roussel <[email protected]>
  • Loading branch information
achille-roussel committed May 27, 2023
1 parent 2c52e08 commit 6b63a71
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

env:
GOPRIVATE: github.com/stealthrocket
GH_ACCESS_TOKEN: ${{ secrets.PRIVATE_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
spellcheck:
name: Spell Check
Expand Down Expand Up @@ -45,8 +40,6 @@ jobs:
go-version-file: go.mod
check-latest: true

- run: git config --global url.https://[email protected] https://github.com

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand All @@ -56,6 +49,9 @@ jobs:
test:
name: Go Test
runs-on: ubuntu-latest
env:
GOPRIVATE: github.com/stealthrocket
GH_ACCESS_TOKEN: ${{ secrets.PRIVATE_ACCESS_TOKEN }}
steps:
- uses: actions/checkout@v3

Expand All @@ -72,6 +68,6 @@ jobs:
mkdir -p $HOME/gotip
tar -C $HOME/gotip -xzf gotip.tar.gz
- run: git config --global url.https://$GITHUB_TOKEN@github.com.insteadOf https://github.com
- run: git config --global url.https://$GH_ACCESS_TOKEN@github.com.insteadOf https://github.com
- run: make testdata GO=$HOME/gotip/bin/go
- run: make test

0 comments on commit 6b63a71

Please sign in to comment.