From 147815a705825eeaabd9d8a5709014f25bee3d15 Mon Sep 17 00:00:00 2001 From: Ali AKCA Date: Wed, 13 Dec 2023 21:15:42 +0100 Subject: [PATCH] build: re-add lint jobs --- .github/workflows/lint.yaml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 88bccfd..8b5dc7e 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -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)