Skip to content

chore(ci): remove deploy test docs #3408

chore(ci): remove deploy test docs

chore(ci): remove deploy test docs #3408

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:
runs-on: ubuntu-22.04
timeout-minutes: 10
permissions:
pull-requests: read
outputs:
workflow_proceed: ${{ steps.changes.outputs.workflow_proceed }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Detect changes
uses: dorny/paths-filter@v3
id: changes
with:
filters: |
workflow_proceed:
- 'go.mod'
- 'Taskfile.dist.yaml'
- '.github/**'
- 'cmd/werf/**'
- 'pkg/**'
- 'integration/**'
- 'scripts/**'
- 'test/**'
lint:
needs: detect-changes
uses: ./.github/workflows/_lint.yml
with:
forceSkip: ${{ github.event_name == 'pull_request' && needs.detect-changes.outputs.workflow_proceed == 'false' }}
unit:
needs: detect-changes
uses: ./.github/workflows/_test_unit.yml
with:
excludePackages: cmd/werf/docs
forceSkip: ${{ github.event_name == 'pull_request' && needs.detect-changes.outputs.workflow_proceed == 'false' }}
build:
if: ${{ !(github.event_name == 'pull_request' && needs.detect-changes.outputs.workflow_proceed == 'false') }}
needs: detect-changes
strategy:
fail-fast: false
runs-on: ubuntu-latest-16-cores
timeout-minutes: 60
steps:
- name: Install werf build dependencies
run: |
sudo apt update
sudo apt install -y gcc-aarch64-linux-gnu libbtrfs-dev file
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
cache: true
go-version-file: go.mod
- name: Install Task
uses: arduino/setup-task@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: task -p build:dev:all
e2e_simple:
needs: detect-changes
uses: ./.github/workflows/_test_e2e_regular.yml
with:
scope: simple
forceSkip: ${{ github.event_name == 'pull_request' && needs.detect-changes.outputs.workflow_proceed == 'false' }}
secrets: inherit
notify:
if: |
(github.event_name == 'pull_request' && github.event.pull_request.draft == false && failure()) ||
(github.event_name != 'pull_request' && failure())
needs:
- lint
- unit
- e2e_simple
uses: ./.github/workflows/_notification.yml
secrets:
loopNotificationGroup: ${{ secrets.LOOP_NOTIFICATION_GROUP }}
webhook: ${{ secrets.LOOP_NOTIFICATION_WEBHOOK }}
notificationChannel: ${{ secrets.LOOP_NOTIFICATION_CHANNEL }}