Skip to content

chore(2): release 1.29.0 #966

chore(2): release 1.29.0

chore(2): release 1.29.0 #966

Workflow file for this run

name: test:pr
on:
pull_request:
repository_dispatch:
types: ["test:pr"]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:
detect-changes:
name: Detect changed file groups
if: ${{ github.event_name != 'pull_request' || !startsWith(github.event.pull_request.head.ref, 'release-please--') }}
runs-on: ubuntu-22.04
timeout-minutes: 10
permissions:
pull-requests: read
outputs:
src_changed: ${{ steps.changed-files.outputs.src_any_changed }}
lint_changed: ${{ steps.changed-files.outputs.lint_any_changed }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Detect file groups
id: changed-files
uses: tj-actions/changed-files@v47
with:
files_yaml: |
src:
- '**/*.go'
- 'go.mod'
- 'go.sum'
- 'cmd/nelm/**'
- 'internal/**'
- 'pkg/**'
- 'scripts/**'
lint:
- '**/*.go'
- '**/*.yaml'
- '**/*.yml'
lint:
needs: detect-changes
uses: ./.github/workflows/_lint.yml
with:
forceSkip: ${{ github.event_name == 'pull_request' && needs.detect-changes.outputs.lint_changed == 'false' }}
unit:
needs: detect-changes
uses: ./.github/workflows/_test_unit.yml
with:
forceSkip: ${{ github.event_name == 'pull_request' && needs.detect-changes.outputs.src_changed == 'false' }}
build:
needs: detect-changes
if: needs.detect-changes.outputs.src_changed == 'true'
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- name: Install build dependencies
run: |
sudo apt update
sudo apt install -y gcc-aarch64-linux-gnu file
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Go
id: setup-go
uses: actions/setup-go@v6
with:
cache: false
go-version-file: go.mod
- name: Cache Go modules and build cache
uses: actions/cache@v5
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ steps.setup-go.outputs.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ steps.setup-go.outputs.go-version }}-
- name: Install Task
uses: go-task/setup-task@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: task -p build:dev:all
notify:
if: |
(github.event_name == 'pull_request' && github.event.pull_request.draft == false && failure()) ||
(github.event_name != 'pull_request' && failure())
needs:
- lint
- unit
uses: werf/common-ci/.github/workflows/notification.yml@main
secrets:
loopNotificationGroup: ${{ vars.LOOP_NOTIFICATION_GROUP }}
webhook: ${{ secrets.LOOP_NOTIFICATION_WEBHOOK }}
notificationChannel: ${{ vars.LOOP_NOTIFICATION_CHANNEL }}