62 lines
1.3 KiB
YAML
62 lines
1.3 KiB
YAML
name: "Test Universe"
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "**.sh"
|
|
- "**.bash"
|
|
- "**.go"
|
|
- "**.cue"
|
|
- "**.bats"
|
|
- "Makefile"
|
|
- "go.mod"
|
|
- "go.sum"
|
|
- ".github/workflows/test-universe.yml"
|
|
- "!docs/**"
|
|
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- "**.sh"
|
|
- "**.bash"
|
|
- "**.go"
|
|
- "**.cue"
|
|
- "**.bats"
|
|
- "Makefile"
|
|
- "go.mod"
|
|
- "go.sum"
|
|
- ".github/workflows/test-universe.yml"
|
|
- "!docs/**"
|
|
|
|
jobs:
|
|
universe-europa-tests:
|
|
name: "Universe Tests - Europa"
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
steps:
|
|
- name: "Check out"
|
|
uses: actions/checkout@v4
|
|
|
|
- name: "Set up Go"
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: 1.16
|
|
|
|
- name: "Install SOPS"
|
|
run: |
|
|
sudo curl -L -o /usr/local/bin/sops https://github.com/mozilla/sops/releases/download/v3.7.1/sops-v3.7.1.linux
|
|
sudo chmod +x /usr/local/bin/sops
|
|
|
|
- name: "Import Dagger private key"
|
|
run: |
|
|
mkdir -p ~/.config/sops/age
|
|
cp ./tests/age_key.txt ~/.config/sops/age/keys.txt
|
|
|
|
- name: "Expose GitHub Runtime"
|
|
uses: crazy-max/ghaction-github-runtime@v3
|
|
|
|
- name: Test
|
|
run: |
|
|
make universe-test
|