Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new: Add cross repo testing for Release #470

Merged
merged 23 commits into from
Mar 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}