fix(gh-actions): replace token with PAT #32
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: tests | |
on: | |
pull_request_target: | |
branches: [ '*' ] | |
push: | |
branches: | |
- "main" | |
jobs: | |
integration: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: ./go.mod | |
cache: false | |
- env: | |
LINODE_TOKEN: ${{ secrets.LINODE_TOKEN }} | |
run: | | |
export LINODE_TOKEN=${LINODE_TOKEN:?Token not set or empty} | |
make \ | |
test-integration | |
e2e: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: ./go.mod | |
cache: false | |
- env: | |
LINODE_TOKEN: ${{ secrets.LINODE_TOKEN }} | |
run: | | |
export LINODE_TOKEN=${LINODE_TOKEN:?Token not set or empty} | |
make \ | |
IMG=localhost:5005/linode-cosi-driver \ | |
TAG=e2e \ | |
cluster \ | |
docker-build docker-push \ | |
deploy-deps deploy | |
- run: | | |
make test-e2e |