feat: v2.0.0 #2
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: dagger | |
on: [push, pull_request] | |
jobs: | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
cache: false | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '1.21' | |
- name: Vendor go dependencies | |
run: go mod vendor | |
- name: Install Dagger CLI | |
run: cd /usr/local && { curl -L https://dl.dagger.io/dagger/install.sh | sh; cd -; } | |
- name: Run Dagger pipeline | |
run: dagger run go run ci/main.go github Dockerfile "${GITHUB_REF}" ${{ vars.OSX_GITHUB_FLAGS }} |