-
Notifications
You must be signed in to change notification settings - Fork 5
82 lines (80 loc) · 3.2 KB
/
test.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: pre-commit checks
uses: ./.github/actions/pre-commit
- name: Ensure SHA pinned actions
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@b35f285b9bb7e80de0967367cee66d3b6d50ceca # v3.0.1
with:
allowlist: |
Alfresco/alfresco-build-tools/
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: ./.github/actions/pre-commit-default
# - name: Manual test for send slack notification
# uses: ./.github/actions/send-slack-notification
# with:
# channel-id: '' # grab your slack id from your profile -> three dots -> Copy member ID
# token: ${{ secrets.SLACK_BOT_TOKEN }}
# notification-color: '#A30200'
# append: true
# message: |
# This is a multiline message with `code`
#
# * another line
# * one more
- uses: ./.github/actions/setup-helm-docs
- uses: ./.github/actions/setup-jx-release-version
- uses: ./.github/actions/setup-kubepug
- uses: ./.github/actions/rancher
if: ${{ ! github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }}
with:
rancher-url: 'https://rancher2.envalfresco.com'
rancher-access-key: ${{ secrets.RANCHER2_ACCESS_KEY }}
rancher-secret-key: ${{ secrets.RANCHER2_SECRET_KEY }}
cluster-name: "fake_cluster"
action: "detach"
- uses: ./.github/actions/setup-rancher-cli
if: ${{ ! github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }}
with:
url: ${{ secrets.RANCHER2_URL }}
access-key: ${{ secrets.RANCHER2_ACCESS_KEY }}
secret-key: ${{ secrets.RANCHER2_SECRET_KEY }}
context: local
- uses: ./.github/actions/setup-updatebot
- uses: ./.github/actions/setup-pysemver
- uses: ./.github/actions/calculate-next-internal-version
with:
next-version: 7.3.0
- uses: ./.github/actions/resolve-preview-name
- uses: ./.github/actions/setup-terraform-docs
- uses: ./.github/actions/setup-kcadm
- uses: ./.github/actions/env-load-from-yaml
with:
ignore_regex: ^TRAVIS_BRANCH=.*
yml_path: ./.github/tests/env-load-from-yaml/env.yml
- name: Test env-load-from-yaml
run: |
if [ -z "$APP_SETTING_ONE" ]; then
echo APP_SETTING_ONE should be set!
exit 1
fi
if [ -n "$TRAVIS_BRANCH" ]; then
echo TRAVIS_BRANCH should not be set!
exit 1
fi
- name: Preserve available disk size before cleanup
run: echo total_size_before=$(df --total --output=avail | tail -1) >> $GITHUB_ENV
- uses: ./.github/actions/free-hosted-runner-disk-space
- name: Test if available disk size increased
run: test ${{ env.total_size_before }} -lt $(df --total --output=avail | tail -1)