Skip to content

feat(tests): when running in ci call "go mod download" first, pt7 #11

feat(tests): when running in ci call "go mod download" first, pt7

feat(tests): when running in ci call "go mod download" first, pt7 #11

Workflow file for this run

name: Unit Tests
on:
push:
branches:
- main
permissions: read-all
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Lint files
uses: dagger/dagger-for-github@v6
with:
version: latest
verb: call
args: lint --root=.
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
# test:
# name: Unit Tests
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - name: Run unit tests
# uses: dagger/dagger-for-github@v6
# with:
# version: latest
# verb: call
# args: test --root=.
# cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
e2e:
name: End-to-end test all examples
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: '1.23.6'
- name: Run all examples
run: ./scripts/test.sh