Skip to content

Commit

Permalink
build: re-add lint jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
aweris committed Dec 13, 2023
1 parent c335180 commit 147815a
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,45 @@ jobs:
uses: reviewdog/action-golangci-lint@v2
with:
workdir: ${{ matrix.workdir }}

daggerverse-lint:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21

- name: Install Dagger CLI
run: cd /usr/local && { curl -L https://dl.dagger.io/dagger/install.sh | sh; cd -; }

- name: Sync dagger modules
run: dagger export -m ci daggerverse sync --output .

- name: Check if daggerverse is up to date
run: git diff --exit-code || (echo 'Uncommitted changes detected' && exit 1)

gha-gen-lint:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21

- name: Install Dagger CLI
run: cd /usr/local && { curl -L https://dl.dagger.io/dagger/install.sh | sh; cd -; }

- name: Generate GitHub Actions modules
run: dagger download -m ci gha generate -o gha/

- name: Check if generated Github Actions modules is up to date
run: git diff --exit-code || (echo 'Uncommitted changes detected' && exit 1)

0 comments on commit 147815a

Please sign in to comment.