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

Commit e4f66e3

Browse files
authored
Add PR regression test for script-library/*.sh
1 parent 76615ae commit e4f66e3

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: PR tests for script library
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- main
8+
paths:
9+
- 'script-library/*.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: ["debian:bullseye", "debian:buster", "ubuntu:focal", "ubuntu:bionic", alpine, rockylinux, "mcr.microsoft.com/oryx/build:github-actions-20210902.1"]
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)