diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2b3605c7..fb9c13ef 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,7 +11,7 @@ env: jobs: build-binary: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest strategy: matrix: platforms: @@ -78,7 +78,7 @@ jobs: files: builds/* build-docker-images-and-push: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/v') steps: - name: Checkout repository diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a1363b1d..68b691ae 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -8,7 +8,7 @@ env: jobs: deploy-docs: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 00000000..8d50c36d --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,42 @@ +name: PR checks + +on: + workflow_dispatch: + pull_request: + paths-ignore: + - 'README.md' + - 'docs/**' + - 'mkdocs.yml' + - 'LICENSE' + - 'getting_started.md' + - 'docker-compose.yml' + - 'playground/**' + - 'CNAME' + - 'requirements.txt' + +env: + go-version: '1.23.2' + golangci-lint-version: v1.60 + +jobs: + tests: + uses: ./.github/workflows/tests.yml + + build: + uses: ./.github/workflows/build.yml + needs: + - tests + + lint: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: ${{ env.go-version }} + + - name: golangci-lint + uses: golangci/golangci-lint-action@v6 + with: + version: ${{ env.golangci-lint-version }} \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a7417cd8..44ee4ef9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,16 +1,10 @@ -name: release +name: Create Greenmask release on: workflow_dispatch: push: tags: - 'v*' - pull_request: - paths-ignore: - - 'README.md' - - 'docs/**' - - 'LICENSE' - - 'getting_started.md' jobs: tests: @@ -23,7 +17,6 @@ jobs: docs: uses: ./.github/workflows/docs.yml - if: startsWith(github.ref, 'refs/tags/v') needs: - build \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 79bcbb05..4629be9c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,7 @@ env: jobs: unit-tests: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 @@ -22,7 +22,7 @@ jobs: run: make tests integration-tests: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest needs: - unit-tests steps: diff --git a/.github/workflows/update_dev_docs.yml b/.github/workflows/update_dev_docs.yml index 0540f4e3..509d9a8c 100644 --- a/.github/workflows/update_dev_docs.yml +++ b/.github/workflows/update_dev_docs.yml @@ -8,9 +8,6 @@ on: paths: - 'docs/**' -env: - python-version: 'pypy3.10' - jobs: docs: uses: ./.github/workflows/docs.yml