Skip to content

Commit

Permalink
ci: add job to check if daggerverse modules is synced
Browse files Browse the repository at this point in the history
  • Loading branch information
aweris committed Nov 8, 2023
1 parent b22fab8 commit 0e4d801
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,24 @@ 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 daggerverse

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

0 comments on commit 0e4d801

Please sign in to comment.