Skip non-europa tests

Signed-off-by: Joel Longtine <joel@dagger.io>
This commit is contained in:
Joel Longtine
2022-02-21 12:33:01 -07:00
parent 16b66773f3
commit 0705b0eeae
3 changed files with 102 additions and 159 deletions

View File

@@ -18,66 +18,66 @@ on:
- 'Makefile'
- '.github/workflows/test-docs.yml'
jobs:
test-docs:
name: "Test Docs"
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: "Check out"
uses: actions/checkout@v2
# jobs:
# test-docs:
# name: "Test Docs"
# runs-on: ubuntu-latest
# timeout-minutes: 15
# steps:
# - name: "Check out"
# uses: actions/checkout@v2
- name: "Setup Go"
uses: actions/setup-go@v1
with:
go-version: 1.16
# - name: "Setup Go"
# uses: actions/setup-go@v1
# with:
# go-version: 1.16
- name: "Install CUE"
run: |
# Cue
export CUE_VERSION="$(grep cue ./go.mod | cut -d' ' -f2 | head -1 | sed -E 's/\.[[:digit:]]\.[[:alnum:]]+-[[:alnum:]]+$//')"
export CUE_TARBALL="cue_${CUE_VERSION}_linux_amd64.tar.gz"
echo "Installing cue version $CUE_VERSION"
curl -L https://github.com/cue-lang/cue/releases/download/${CUE_VERSION}/${CUE_TARBALL} | sudo tar zxf - -C /usr/local/bin
# - name: "Install CUE"
# run: |
# # Cue
# export CUE_VERSION="$(grep cue ./go.mod | cut -d' ' -f2 | head -1 | sed -E 's/\.[[:digit:]]\.[[:alnum:]]+-[[:alnum:]]+$//')"
# export CUE_TARBALL="cue_${CUE_VERSION}_linux_amd64.tar.gz"
# echo "Installing cue version $CUE_VERSION"
# curl -L https://github.com/cue-lang/cue/releases/download/${CUE_VERSION}/${CUE_TARBALL} | sudo tar zxf - -C /usr/local/bin
- name: "Run local registry"
run: |
docker run -d -p 5000:5000 --name registry registry:2
# - name: "Run local registry"
# run: |
# docker run -d -p 5000:5000 --name registry registry:2
# TODO: DISABLED for CI deadlock debugging
# - name: Generate KiND config
# run: |
# echo 'kind: Cluster
# apiVersion: kind.x-k8s.io/v1alpha4
# containerdConfigPatches:
# - |-
# [plugins."io.containerd.grpc.v1.cri".registry.mirrors."localhost:5000"]
# endpoint = ["http://registry:5000"]' > ./kind-config.yaml
# cat ./kind-config.yaml
# # TODO: DISABLED for CI deadlock debugging
# # - name: Generate KiND config
# # run: |
# # echo 'kind: Cluster
# # apiVersion: kind.x-k8s.io/v1alpha4
# # containerdConfigPatches:
# # - |-
# # [plugins."io.containerd.grpc.v1.cri".registry.mirrors."localhost:5000"]
# # endpoint = ["http://registry:5000"]' > ./kind-config.yaml
# # cat ./kind-config.yaml
# - name: "Setup KiND"
# uses: helm/kind-action@v1.2.0
# with:
# config: "./kind-config.yaml"
# # - name: "Setup KiND"
# # uses: helm/kind-action@v1.2.0
# # with:
# # config: "./kind-config.yaml"
# - name: Connect local registry to KiND
# run: |
# docker network connect kind registry
# # - name: Connect local registry to KiND
# # run: |
# # docker network connect kind registry
- name: "Import Dagger private key"
env:
DAGGER_AGE_KEY: ${{ secrets.DAGGER_AGE_KEY }}
run: |
mkdir -p ~/.config/dagger
echo "$DAGGER_AGE_KEY" > ~/.config/dagger/keys.txt
# - name: "Import Dagger private key"
# env:
# DAGGER_AGE_KEY: ${{ secrets.DAGGER_AGE_KEY }}
# run: |
# mkdir -p ~/.config/dagger
# echo "$DAGGER_AGE_KEY" > ~/.config/dagger/keys.txt
- name: "Expose GitHub Runtime"
uses: crazy-max/ghaction-github-runtime@v1
# - name: "Expose GitHub Runtime"
# uses: crazy-max/ghaction-github-runtime@v1
- name: Test
# TODO: https://github.com/dagger/dagger/pull/1341
# env:
# DAGGER_CACHE_TO: "type=gha,mode=max,scope=test-docs"
# DAGGER_CACHE_FROM: "type=gha,mode=max,scope=test-docs"
run: |
make doc-test
# - name: Test
# # TODO: https://github.com/dagger/dagger/pull/1341
# # env:
# # DAGGER_CACHE_TO: "type=gha,mode=max,scope=test-docs"
# # DAGGER_CACHE_FROM: "type=gha,mode=max,scope=test-docs"
# run: |
# make doc-test

View File

@@ -25,66 +25,6 @@ on:
- '.github/workflows/test-universe.yml'
jobs:
universe-tests:
name: "Universe Tests"
runs-on: ubuntu-latest
timeout-minutes: 30
services:
localstack:
image: localstack/localstack:0.12.16
env:
SERVICES: s3, ecr
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
ports:
- 4566:4566
- 4571:4571
- 4510:4510
options: >-
--health-cmd "curl -f http://localhost:4566/health"
--health-start-period 5s
--health-timeout 5s
--health-interval 5s
--health-retries 10
steps:
- name: "Check out"
uses: actions/checkout@v2
- name: "Setup Go"
uses: actions/setup-go@v1
with:
go-version: 1.16
- name: "Setup KiND"
uses: helm/kind-action@v1.2.0
- name: "Import Dagger private key"
env:
DAGGER_AGE_KEY: ${{ secrets.DAGGER_AGE_KEY }}
run: |
mkdir -p ~/.config/dagger
echo "$DAGGER_AGE_KEY" > ~/.config/dagger/keys.txt
- name: "Provision Localstack AWS resources"
env:
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test
AWS_DEFAULT_REGION: us-east-2
run: |
aws --endpoint-url=http://localhost:4566 s3 mb s3://dagger-ci
aws --endpoint-url=http://localhost:4566 ecr create-repository --repository-name dagger-ci
- name: "Expose GitHub Runtime"
uses: crazy-max/ghaction-github-runtime@v1
- name: Test
# TODO: https://github.com/dagger/dagger/pull/1341
# env:
# DAGGER_CACHE_TO: "type=gha,mode=max,scope=test-universe"
# DAGGER_CACHE_FROM: "type=gha,mode=max,scope=test-universe"
run: |
make universe-test
universe-europa-tests:
name: "Universe Tests - Europa"
runs-on: ubuntu-latest