Skip to content

Test

Test #30

Workflow file for this run

name: Test
on:
workflow_call:
workflow_run:
workflows: ["Build"]
types:
- completed
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Check out the code
uses: actions/[email protected]
- name: Install devbox
uses: jetpack-io/[email protected]
with:
enable-cache: true
- name: Setup devbox
run: devbox run -- echo "done!"
- name: Load devbox shellenv
uses: HatsuneMiku3939/direnv-action@v1
with:
direnvVersion: 2.32.3
- name: Set up Go tool cache
uses: actions/[email protected]
with:
path: |
~/.devbox/go
key: devbox-go-tools.cache-${{ runner.arch }}-${{ hashFiles('Makefile') }}
- name: Run tests
run: make test