diff --git a/.github/workflows/build_alfa_cli.yml b/.github/workflows/build_alfa_cli.yml index 09893cf..bc848be 100644 --- a/.github/workflows/build_alfa_cli.yml +++ b/.github/workflows/build_alfa_cli.yml @@ -2,10 +2,11 @@ name: Build Alfa CLI on: push: - branches: [ main ] + branches: + - main paths: - - 'bin/**' - - 'lib/**' + - "bin/**" + - "lib/**" workflow_dispatch: jobs: @@ -19,13 +20,15 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: '0' + fetch-depth: "0" + - name: Bump version and create tag id: create-tag uses: anothrNick/github-tag-action@1.61.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} WITH_V: true + - name: Create release env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -39,12 +42,12 @@ jobs: strategy: matrix: - os: [ ubuntu-latest, macos-latest ] + os: [ubuntu-latest, macos-latest] steps: - uses: actions/checkout@v4 with: - fetch-depth: '0' + fetch-depth: "0" - uses: dart-lang/setup-dart@v1.3 with: @@ -72,7 +75,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: '0' + fetch-depth: "0" + - name: Setup arm emulation with qemu run: | sudo apt-get update -q -y diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0cb1f80..8421ebc 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,17 +3,19 @@ name: Lint # Run only one unique workflow at a time on a pr # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} cancel-in-progress: true on: pull_request: - branches: [ main ] + branches: + - main paths: - - 'bin/**' - - 'lib/**' - - 'tests/**.dart' - - 'pubspec.yaml' + - ".github/workflows/lint.yml" + - "bin/**" + - "lib/**" + - "tests/**.dart" + - "pubspec.yaml" workflow_dispatch: jobs: diff --git a/.github/workflows/publish_dart_docker.yml b/.github/workflows/publish_dart_docker.yml index 0852f1c..1c62b3c 100644 --- a/.github/workflows/publish_dart_docker.yml +++ b/.github/workflows/publish_dart_docker.yml @@ -2,14 +2,15 @@ name: Publish Dart Docker Image on: push: - branches: [ main ] + branches: + - main paths: - - '.github/workflows/publish_dart_docker.yml' - - 'dart.Dockerfile' - - '.dart_config/**' + - ".github/workflows/publish_dart_docker.yml" + - ".dart_config/**" + - "dart.Dockerfile" schedule: - # on the 2nd and 16th of every month - - cron: '0 0 2,16 * *' + # on the 2nd and 16th of every month + - cron: "0 0 2,16 * *" workflow_dispatch: jobs: @@ -29,8 +30,7 @@ jobs: - image: nateateteen/zshpod:full-min tags: nateateteen/zdartpod:full-min steps: - - name: Check out the repo - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - name: Log in to Docker Hub uses: docker/login-action@v3 diff --git a/.github/workflows/publish_docker.yml b/.github/workflows/publish_docker.yml index fed2478..f06ccc5 100644 --- a/.github/workflows/publish_docker.yml +++ b/.github/workflows/publish_docker.yml @@ -2,14 +2,15 @@ name: Publish Docker Image on: push: - branches: [ main ] + branches: + - main paths: - - 'templates/**' - - '.github/workflows/publish_docker.yml' - - 'Dockerfile' + - ".github/workflows/publish_docker.yml" + - "templates/**" + - "Dockerfile" schedule: - # on the 1st and 15th of every month - - cron: '0 0 1,15 * *' + # on the 1st and 15th of every month + - cron: "0 0 1,15 * *" workflow_dispatch: jobs: @@ -33,8 +34,7 @@ jobs: tags: nateateteen/zshpod:full-min min: yes steps: - - name: Check out the repo - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - name: Log in to Docker Hub uses: docker/login-action@v3 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c2259da..2ac08ff 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,16 +3,18 @@ name: Test # Run only one unique workflow at a time on a pr # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} cancel-in-progress: true on: pull_request: - branches: [ main ] + branches: + - main paths: - - 'functions/**' - - 'tests/**' - - 'pubspec.yaml' + - ".github/workflows/test.yml" + - "functions/**" + - "tests/**" + - "pubspec.yaml" workflow_dispatch: jobs: