-
Notifications
You must be signed in to change notification settings - Fork 37
84 lines (82 loc) · 2.67 KB
/
ci-Seaside3.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
83
84
name: Seaside3 Tests
on:
push:
pull_request:
branches:
master
schedule:
- cron: "15 3 19 * *" #run job on the 19th day of every month on the 15th minute of the d hour
jobs:
build:
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
gs_version: [ 3.2.17, 3.3.9, 3.4.5, 3.5.8, 3.6.3 ]
allowfailure: [ false ]
env:
GS_VERSION: ${{ matrix.gs_version }}
TEST: Seaside3
continue-on-error: ${{ matrix.allowfailure }}
name: ${{ matrix.gs_version }} - Seaside3
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H:%M:%S')"
- name: Log date
run: echo "${{ steps.date.outputs.date }}"
- name: Set default run status
run: echo "::set-output name=last_run_status::default" > last_run_status
- name: Restore last run status
id: last_run
uses: actions/cache@v2
with:
path: |
last_run_status
key: ${{ github.run_id }}-${{ matrix.gs_version }}-${{ steps.date.outputs.date }}
restore-keys: |
${{ github.run_id }}-${{ matrix.gs_version }}-
- name: Set last run status
id: last_run_status
run: cat last_run_status
- uses: actions/checkout@v2
with:
ref: ${{ github.event.workflow_dispatch.ref }}
- uses: actions/checkout@v2
- name: Install Chrome
run: |
sudo apt install google-chrome-stable
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
- name: Run tests
id: test_run
if: steps.last_run_status.outputs.last_run_status != 'success'
run: |
export GS_HOME="$(pwd)"
export PATH=$GS_HOME/bin:$PATH
export GS_TRAVIS=true
export JAVA="java"
export TRAVIS_BUILD_DIR=`pwd`
hostname
cat /etc/hosts
$GITHUB_WORKSPACE/tests/testTravisCI.sh
shell: bash
- name: Save run status
if: steps.last_run_status.outputs.last_run_status != 'success'
run: echo "::set-output name=last_run_status::${{ steps.test_run.outcome }}" > last_run_status
slack-workflow-status:
if: always()
name: Post Workflow Status To Slack
needs:
- build
runs-on: ubuntu-18.04
steps:
- name: Slack Workflow Notification
uses: Gamesight/slack-workflow-status@master
with:
repo_token: ${{secrets.GITHUB_TOKEN}}
slack_webhook_url: ${{secrets.SLACK_DALEHENRICH}}
name: 'action run'