Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 6fb9982

Browse files
authored
Separate PR tests for different distros
1 parent f57365c commit 6fb9982

File tree

3 files changed

+79
-3
lines changed

3 files changed

+79
-3
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test script library (Alpine) for PR
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- main
8+
paths:
9+
- 'script-library/*-alpine.sh'
10+
jobs:
11+
test-script-library:
12+
name: Test script library
13+
if: "!contains(github.event.head_commit.message, 'Automated update') && !contains(github.event.head_commit.message, 'CI ignore')"
14+
strategy:
15+
matrix:
16+
os: ["alpine"]
17+
defaults: ["true", "false"]
18+
fail-fast: true
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Free more space
22+
id: free_space
23+
run: |
24+
set -e
25+
# Ensure enough space is available for build
26+
sudo apt-get autoremove -y
27+
sudo apt-get clean -y
28+
sudo rm -rf /usr/share/dotnet
29+
30+
- name: Checkout
31+
id: checkout
32+
uses: actions/checkout@v1
33+
34+
- name: Test script library
35+
id: test_script_library
36+
run: |
37+
set -e
38+
bash script-library/test/regression/test.sh "${{ matrix.os }}" false "${{ matrix.defaults }}" true linux/amd64

.github/workflows/script-library-pr-regression.yml renamed to .github/workflows/script-library-pr-debian.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
name: PR tests for script library
1+
name: Test script library (Debian) for PR
22

33
on:
44
workflow_dispatch:
55
pull_request:
66
branches:
77
- main
88
paths:
9-
- 'script-library/*.sh'
9+
- 'script-library/*-debian.sh'
1010
jobs:
1111
test-script-library:
1212
name: Test script library
1313
if: "!contains(github.event.head_commit.message, 'Automated update') && !contains(github.event.head_commit.message, 'CI ignore')"
1414
strategy:
1515
matrix:
16-
os: ["debian:bullseye", "debian:buster", "ubuntu:focal", "ubuntu:bionic", alpine, rockylinux, "mcr.microsoft.com/oryx/build:github-actions-20210902.1"]
16+
os: ["debian:bullseye", "debian:buster", "ubuntu:focal", "ubuntu:bionic"]
1717
defaults: ["true", "false"]
1818
fail-fast: true
1919
runs-on: ubuntu-latest
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test script library (RedHat) for PR
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- main
8+
paths:
9+
- 'script-library/*-redhat.sh'
10+
jobs:
11+
test-script-library:
12+
name: Test script library
13+
if: "!contains(github.event.head_commit.message, 'Automated update') && !contains(github.event.head_commit.message, 'CI ignore')"
14+
strategy:
15+
matrix:
16+
os: ["rockylinux"]
17+
defaults: ["true", "false"]
18+
fail-fast: true
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Free more space
22+
id: free_space
23+
run: |
24+
set -e
25+
# Ensure enough space is available for build
26+
sudo apt-get autoremove -y
27+
sudo apt-get clean -y
28+
sudo rm -rf /usr/share/dotnet
29+
30+
- name: Checkout
31+
id: checkout
32+
uses: actions/checkout@v1
33+
34+
- name: Test script library
35+
id: test_script_library
36+
run: |
37+
set -e
38+
bash script-library/test/regression/test.sh "${{ matrix.os }}" false "${{ matrix.defaults }}" true linux/amd64

0 commit comments

Comments
 (0)