Merge pull request #422 from vancluever/dependabot/go_modules/google.… #870
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- 'v*' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
skip_duplicate: | |
runs-on: ubuntu-latest | |
outputs: | |
should_skip: ${{ steps.skip_duplicate.outputs.should_skip }} | |
steps: | |
- id: skip_duplicate | |
uses: fkirc/skip-duplicate-actions@v5 | |
with: | |
concurrent_skipping: 'same_content_newer' | |
go-tests: | |
needs: skip_duplicate | |
if: needs.skip_duplicate.outputs.should_skip != 'true' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '^1.17.5' | |
check-latest: true | |
- name: Cache (Go Modules) | |
uses: actions/cache@v4 | |
env: | |
cache-name: go-mod-cache | |
with: | |
path: /home/runner/go/pkg/mod | |
key: ${{ env.cache-name}}-${{ hashFiles('go.sum') }} | |
restore-keys: | | |
${{ env.cache-name}}- | |
- name: Cache (Go Build) | |
uses: actions/cache@v4 | |
env: | |
cache-name: go-build-cache | |
cache-dir: /home/runner/.cache/go-build | |
with: | |
path: ${{ env.cache-dir }} | |
key: ${{ env.cache-name}}-${{ hashFiles(format('{0}/**/*', env.cache-dir)) }} | |
restore-keys: | | |
${{ env.cache-name}}- | |
- name: Cache (Pebble) | |
uses: actions/cache@v4 | |
env: | |
cache-name: pebble-cache | |
cache-dir: /home/runner/go/src/github.com/letsencrypt/pebble | |
with: | |
path: ${{ env.cache-dir }} | |
key: ${{ env.cache-name}}-${{ hashFiles(format('{0}/**/*', env.cache-dir)) }} | |
restore-keys: | | |
${{ env.cache-name}}- | |
- name: Verify Modules | |
run: go mod verify | |
- name: Run Tests | |
run: make tools pebble-start memcached-start test | |
env: | |
ACME_ENABLE_MEMCACHE_TEST: yes |