Skip to content

Commit

Permalink
fix: trying to solve secrets
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Urbanek <[email protected]>
  • Loading branch information
shanduur committed Oct 25, 2024
1 parent 86565dd commit d24f0bd
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 32 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/tests-secure.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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
32 changes: 0 additions & 32 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,3 @@ jobs:
- run: |
make \
test
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
cache: false
- run: |
export LINODE_TOKEN=${{ secrets.LINODE_TOKEN }}
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
- run: |
export LINODE_TOKEN=${{ secrets.LINODE_TOKEN }}
make \
IMG=localhost:5005/linode-cosi-driver \
TAG=e2e-${{ github.ref_name }} \
cluster \
docker-build docker-push \
deploy-deps deploy
- run: |
make test-e2e

0 comments on commit d24f0bd

Please sign in to comment.