-
-
Notifications
You must be signed in to change notification settings - Fork 114
59 lines (50 loc) · 1.51 KB
/
feature-branch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: feature-branch
on:
pull_request:
branches:
- main
- release/**
types: [opened, synchronize, reopened, labeled, unlabeled]
permissions:
pull-requests: write
id-token: write
contents: read
jobs:
ci-readme:
uses: cloudposse/github-actions-workflows/.github/workflows/ci-readme.yml@main
with:
filter-mode: nofilter
suggestions: false
ci-codeowners:
uses: cloudposse/github-actions-workflows/.github/workflows/ci-codeowners.yml@main
with:
is_fork: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
secrets:
github_access_token: ${{ secrets.REPO_ACCESS_TOKEN }}
ci-labels:
runs-on: ubuntu-latest
steps:
- uses: cloudposse/github-action-release-label-validator@v1
ci-build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: KengoTODA/actions-setup-docker-compose@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run Tests
shell: bash
run: cd test && ./test.sh
- name: Cleanup
if: always()
shell: bash
run: cd test && docker-compose down
ci:
runs-on: ubuntu-latest
if: ${{ always() }}
steps:
- run: |
echo '${{ toJSON(needs) }}' # easier debug
! ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }}
needs: [ ci-readme, ci-codeowners, ci-labels, ci-build-test ]