Skip to content

Commit 7fb7521

Browse files
authored
Run Vetu tests on Cirrus Runners instead of AWS (#1029)
1 parent deb96c9 commit 7fb7521

2 files changed

Lines changed: 25 additions & 31 deletions

File tree

.cirrus.yml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -55,37 +55,6 @@ task:
5555
test_script:
5656
- go test -v -p 1 ./...
5757

58-
task:
59-
name: Test (Linux with Vetu)
60-
alias: Tests
61-
aws_credentials:
62-
role_arn: arn:aws:iam::944424729675:role/VetuIntegrationTests
63-
role_session_name: cirrus
64-
region: us-east-2
65-
ec2_instance:
66-
image: ubuntu/images/hvm-ssd-gp3/ubuntu-noble-24.04-arm64-server-*
67-
architecture: arm64
68-
region: us-east-2
69-
type: a1.metal
70-
block_device_mappings:
71-
- device_name: /dev/sda1
72-
ebs:
73-
volume_size: 100
74-
volume_type: gp3
75-
prepare_script:
76-
- sudo apt-get update && sudo apt-get -y install apt-transport-https ca-certificates golang-go
77-
- echo "deb [trusted=yes] https://apt.fury.io/cirruslabs/ /" | sudo tee /etc/apt/sources.list.d/cirruslabs.list
78-
- sudo apt-get update && sudo apt-get -y install vetu
79-
pre_pull_vm_script:
80-
- vetu pull $CIRRUS_INTERNAL_VETU_VM
81-
test_script:
82-
- go test -v -p 1 ./...
83-
env:
84-
CIRRUS_INTERNAL_VETU_VM: ghcr.io/cirruslabs/ubuntu:latest
85-
CIRRUS_INTERNAL_VETU_SSH_PASSWORD: admin
86-
CIRRUS_INTERNAL_VETU_SSH_USER: admin
87-
HOME: /root
88-
8958
task:
9059
name: Release (Dry Run)
9160
only_if: $CIRRUS_TAG == ''

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
push:
3+
4+
jobs:
5+
test-integration:
6+
name: Test (Linux with Vetu)
7+
runs-on: ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-md
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-go@v5
11+
with:
12+
go-version: stable
13+
- name: Install Vetu
14+
run: |
15+
sudo apt-get update && sudo apt-get -y install apt-transport-https ca-certificates golang-go
16+
echo "deb [trusted=yes] https://apt.fury.io/cirruslabs/ /" | sudo tee /etc/apt/sources.list.d/cirruslabs.list
17+
sudo apt-get update && sudo apt-get -y install vetu
18+
- name: Pre-pull Vetu VM image
19+
run: vetu pull $CIRRUS_INTERNAL_VETU_VM
20+
- name: Run tests
21+
run: go test -v -p 1 ./...
22+
env:
23+
CIRRUS_INTERNAL_VETU_VM: ghcr.io/cirruslabs/ubuntu-runner-amd64:latest
24+
CIRRUS_INTERNAL_VETU_SSH_PASSWORD: admin
25+
CIRRUS_INTERNAL_VETU_SSH_USER: admin

0 commit comments

Comments
 (0)