-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (54 loc) · 1.66 KB
/
ubuntu.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
# Auto-generated by Cimas: Do not edit it manually!
# See https://github.com/metanorma/cimas
name: ubuntu
on:
push:
branches: [ master ]
tags:
- '*'
pull_request:
paths-ignore:
- .github/workflows/macos.yml
- .github/workflows/windows.yml
jobs:
test-linux:
name: Test on Ruby ${{ matrix.ruby }} Ubuntu
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
ruby: [ '2.6', '2.5', '2.4' ]
experimental: [false]
include:
- ruby: '2.7'
experimental: true
steps:
- uses: actions/checkout@master
- name: Use Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Update gems
run: |
gem install bundler
bundle install --jobs 4 --retry 3
- name: Run specs
run: |
bundle exec rake
- name: Trigger repositories
if: matrix.ruby == '2.6'
env:
GH_USERNAME: metanorma-ci
GH_ACCESS_TOKEN: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
run: |
curl -LO --retry 3 https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/trigger-gh-actions.sh
[[ -f ".github/workflows/dependent_repos.env" ]] && source .github/workflows/dependent_repos.env
CLIENT_PAYLOAD=$(cat <<EOF
"{ "ref": "${GITHUB_REF}", "repo": "${GITHUB_REPOSITORY}" }"
EOF
)
for repo in $REPOS
do
sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY "$CLIENT_PAYLOAD"
done