From 9527b3abd4ffb00a85c28484fa9da89dc5dd25cd Mon Sep 17 00:00:00 2001 From: jahn Date: Wed, 22 Jan 2025 09:38:01 +0100 Subject: [PATCH] feat: updated github actions workflows --- .github/workflows/main.yml | 56 ++++++++++++++-------------- .github/workflows/release-please.yml | 6 +-- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7c1532f..c8525e4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,18 +2,18 @@ name: Tests on: push: - branches: [ main, dev ] + branches: [main, dev] pull_request: - branches: [ main, dev ] - + branches: [main, dev] jobs: Formatting: runs-on: ubuntu-latest + if: ${{ github.actor != 'github-actions[bot]' }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Formatting - uses: github/super-linter@v4 + uses: super-linter/super-linter@v7 env: VALIDATE_ALL_CODEBASE: false DEFAULT_BRANCH: main @@ -22,33 +22,33 @@ jobs: Linting: runs-on: ubuntu-latest + if: ${{ github.actor != 'github-actions[bot]' }} steps: - - uses: actions/checkout@v2 - - name: Lint workflow - uses: snakemake/snakemake-github-action@v1.24.0 - with: - directory: . - snakefile: workflow/Snakefile - args: "--lint" + - uses: actions/checkout@v4 + - name: Lint workflow + uses: snakemake/snakemake-github-action@v1.25.1 + with: + directory: . + snakefile: workflow/Snakefile + args: "--lint" Testing: runs-on: ubuntu-latest - needs: + if: ${{ github.actor != 'github-actions[bot]' }} + needs: - Linting - Formatting steps: - - uses: actions/checkout@v2 - - - name: Test workflow - uses: snakemake/snakemake-github-action@v1.24.0 - with: - directory: .test - snakefile: workflow/Snakefile - args: "--use-conda --show-failed-logs --cores 3 --conda-cleanup-pkgs cache --all-temp --dryrun" - - - name: Test report - uses: snakemake/snakemake-github-action@v1.24.0 - with: - directory: .test - snakefile: workflow/Snakefile - args: "--report report.zip" \ No newline at end of file + - uses: actions/checkout@v4 + - name: Test workflow + uses: snakemake/snakemake-github-action@v1.25.1 + with: + directory: .test + snakefile: workflow/Snakefile + args: "--use-conda --show-failed-logs --cores 3 --conda-cleanup-pkgs cache" + - name: Test report + uses: snakemake/snakemake-github-action@v1.25.1 + with: + directory: .test + snakefile: workflow/Snakefile + args: "--report report.zip" diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 9b0f165..7643ac7 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -13,7 +13,7 @@ jobs: release-please: runs-on: ubuntu-latest steps: - - uses: google-github-actions/release-please-action@v3 + - uses: googleapis/release-please-action@v4 with: - release-type: go # just keep a changelog, no version anywhere outside of git tags - package-name: snakemake-bacterial-riboseq + token: ${{ secrets.GITHUB_TOKEN }} + release-type: simple