Skip to content

Commit

Permalink
fix: fixed the means for bringing in git host's tokens and making ava…
Browse files Browse the repository at this point in the history
…ilable to testing's ENV
  • Loading branch information
yankeeinlondon committed Oct 31, 2022
1 parent 547f11d commit 2f2f0fd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/js-ci-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ jobs:
testing:
name: testing
uses: yankeeinlondon/gha/.github/workflows/test.yml@main
secrets:
api_token: ${{secrets.GH_TOKEN}}
gh_token: ${{secrets.GH_TOKEN}}
bitbucket_token: ${{secrets.BITBUCKET_TOKEN}}
gitlab_token: ${{secrets.GITLAB_TOKEN}}

publish:
name: npm
Expand All @@ -21,9 +26,6 @@ jobs:
nodeVersion: 16
secrets:
npm_token: ${{secrets.NPM_TOKEN}}
VITE_GH_TOKEN: ${{secrets.GH_TOKEN}}
VITE_BITBUCKET_TOKEN: ${{secrets.BITBUCKET_TOKEN}}
VITE_GITLAB_TOKEN: ${{secrets.GITLAB_TOKEN}}

do_not_publish:
name: npm / no publication
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ on:
type: string
default: "pnpm test:metrics"
required: false
gh_token:
type: string
default: ""
required: false
bitbucket_token:
type: string
default: ""
required: false
gitlab_token:
type: string
default: ""
required: false

jobs:
metrics:
Expand Down Expand Up @@ -96,6 +108,13 @@ jobs:
test:
name: test
runs-on: ${{ matrix.os }}
env:
VITE_GH_TOKEN: ${{ secrets.gh_token }}
GH_TOKEN: ${{ secrets.gh_token }}
VITE_BITBUCKET_TOKEN: ${{ secrets.bitbucket_token }}
BITBUCKET_TOKEN: ${{ secrets.bitbucket_token }}
VITE_GITLAB_TOKEN: ${{ secrets.gitlab_token }}
GITLAB_TOKEN: ${{ secrets.gitlab_token }}
strategy:
matrix:
node-version: ${{ fromJSON(inputs.nodeVersions) }}
Expand Down

0 comments on commit 2f2f0fd

Please sign in to comment.