Skip to content

Commit

Permalink
new: Add cross repo testing for Release (#470)
Browse files Browse the repository at this point in the history
* remove old scripts and add submodule for upload scripts

* add cross repo testing workflow

* delete old submodule dir

* change orders

* remove make deps

* make dep change to command

* gha test..

* gha test..

* gha test..

* gha test..

* gha test..

* gha test..

* gha test..

* gha test..

* gha test..

* gha test..

* taking a different approach

* go mod tidy

* test

* final clean up
  • Loading branch information
ykim-1 committed Mar 20, 2024
1 parent 73f38b5 commit dc4f129
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/release-cross-repo-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Release Terraform cross repository test

on:
workflow_dispatch: # Manual trigger

jobs:
terraform_integration_test:
runs-on: ubuntu-latest
steps:
- name: checkout terraform repo
uses: actions/checkout@v4
with:
repository: linode/terraform-provider-linode

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- run: go version
- run: make deps

- name: Clone Repository
uses: actions/checkout@v4
with:
path: linodego

- name: Set up linodego
run: |
cd linodego
linodego_dir=$(pwd)
cd ..
go mod edit -replace github.com/linode/linodego=$linodego_dir
go mod tidy
- name: Update system packages
run: sudo apt-get update -y

- name: Install system deps
run: sudo apt-get install -y build-essential

- name: run tests
run: |
make int-test
env:
LINODE_TOKEN: ${{ secrets.DX_LINODE_TOKEN }}

0 comments on commit dc4f129

Please sign in to comment.