Merge pull request #1043 from aluzzardi/enable-gha-caching

enable gha caching
This commit is contained in:
Andrea Luzzardi 2021-10-05 11:29:37 -07:00 committed by GitHub
commit 7ef717557b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,9 +2,9 @@ name: CI
on: on:
push: push:
branches: [ main ] branches: [main]
pull_request: pull_request:
branches: [ main ] branches: [main]
jobs: jobs:
lint: lint:
@ -97,7 +97,13 @@ jobs:
mkdir -p ~/.config/dagger mkdir -p ~/.config/dagger
echo "$DAGGER_AGE_KEY" > ~/.config/dagger/keys.txt echo "$DAGGER_AGE_KEY" > ~/.config/dagger/keys.txt
- name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v1
- name: Integration test - name: Integration test
env:
DAGGER_CACHE_TO: "type=gha,mode=max,scope=integration"
DAGGER_CACHE_FROM: "type=gha,mode=max,scope=integration"
run: | run: |
env env
make core-integration make core-integration
@ -121,7 +127,7 @@ jobs:
--health-start-period 5s --health-start-period 5s
--health-timeout 5s --health-timeout 5s
--health-interval 5s --health-interval 5s
--health-retries 10 --health-retries 10
steps: steps:
- name: Check out - name: Check out
@ -151,11 +157,18 @@ jobs:
aws --endpoint-url=http://localhost:4566 s3 mb s3://dagger-ci aws --endpoint-url=http://localhost:4566 s3 mb s3://dagger-ci
aws --endpoint-url=http://localhost:4566 ecr create-repository --repository-name 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: Universe Test - name: Universe Test
env:
DAGGER_CACHE_TO: "type=gha,mode=max,scope=universe"
DAGGER_CACHE_FROM: "type=gha,mode=max,scope=universe"
run: | run: |
make universe-test make universe-test
website: website:
name: Website
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
@ -203,7 +216,7 @@ jobs:
--health-start-period 5s --health-start-period 5s
--health-timeout 5s --health-timeout 5s
--health-interval 5s --health-interval 5s
--health-retries 10 --health-retries 10
steps: steps:
- name: Check out - name: Check out
@ -252,6 +265,12 @@ jobs:
mkdir -p ~/.config/dagger mkdir -p ~/.config/dagger
echo "$DAGGER_AGE_KEY" > ~/.config/dagger/keys.txt echo "$DAGGER_AGE_KEY" > ~/.config/dagger/keys.txt
- name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v1
- name: Documentation Test - name: Documentation Test
env:
DAGGER_CACHE_TO: "type=gha,mode=max,scope=docs"
DAGGER_CACHE_FROM: "type=gha,mode=max,scope=docs"
run: | run: |
make doc-test make doc-test