Skip to content

Commit 63c4a01

Browse files
committed
Merge branch 'with_assertions'
2 parents 8aaecdb + 9ac2a32 commit 63c4a01

11 files changed

+306
-0
lines changed

.github/workflows/c-cmocka.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test C 99 + Cmocka
2+
3+
on:
4+
push:
5+
paths:
6+
- 'c-cmocka/**'
7+
- '.github/workflows/c-cmocka**'
8+
branches:
9+
- with_assertions
10+
pull_request:
11+
paths:
12+
- 'c-cmocka/**'
13+
- '.github/workflows/c-cmocka99**'
14+
branches:
15+
- with_assertions
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Check out the repo
22+
uses: actions/checkout@v2
23+
24+
- name: Install cmocka
25+
run: |
26+
sudo apt-get update
27+
sudo apt-get install libcmocka-dev
28+
29+
# - name: Build and test
30+
# working-directory: c-cmocka
31+
# run: |
32+
# gcc -std=c99 -pedantic -pedantic-errors -Werror -Wall -Wextra Parrot.c ParrotTest.c -l cmocka -o ParrotTest
33+
# ./ParrotTest

.github/workflows/csharp-xunit.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Test CSharp .NET + XUnit
2+
3+
on:
4+
push:
5+
paths:
6+
- 'csharp-xunit/**'
7+
- '.github/workflows/csharp-xunit**'
8+
branches:
9+
- with_assertions
10+
pull_request:
11+
paths:
12+
- 'csharp-xunit/**'
13+
- '.github/workflows/csharp-xunit**'
14+
branches:
15+
- with_assertions
16+
17+
jobs:
18+
19+
matrix_build:
20+
runs-on: ${{ matrix.operating-system }}
21+
22+
strategy:
23+
matrix:
24+
operating-system: [ ubuntu-latest, windows-latest ]
25+
cs-versions: [ '2.1.x' ]
26+
# '3.1.x', '5.0.x' not supported in configuration
27+
name: CSharp ${{ matrix.cs-versions }} Build on ${{ matrix.operating-system }}
28+
29+
steps:
30+
- name: Check out the repo
31+
uses: actions/checkout@v2
32+
33+
- name: Setup .NET
34+
uses: actions/setup-dotnet@v1
35+
with:
36+
dotnet-version: ${{ matrix.cs-versions }}
37+
38+
- name: Build and test
39+
working-directory: csharp-xunit
40+
run: |
41+
dotnet restore
42+
dotnet build --no-restore
43+
dotnet test --no-build --verbosity normal
44+
45+
- name: Test scripts Windows
46+
working-directory: csharp-xunit\WordCount.Tests
47+
run: |
48+
.\run_first_session.bat
49+
.\run_tests.bat
50+
if: matrix.operating-system == 'windows-latest'

.github/workflows/java-junit.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Test Java + JUnit 4
2+
3+
on:
4+
push:
5+
paths:
6+
- 'java-junit/**'
7+
- '.github/workflows/java-junit.yml'
8+
branches:
9+
- with_assertions
10+
pull_request:
11+
paths:
12+
- 'java-junit/**'
13+
- '.github/workflows/java-junit.yml'
14+
branches:
15+
- with_assertions
16+
17+
jobs:
18+
19+
matrix_build:
20+
runs-on: ${{ matrix.operating-system }}
21+
22+
strategy:
23+
matrix:
24+
operating-system: [ ubuntu-latest, windows-latest ]
25+
java-version: [ 1.7, 1.8, 11, 16 ]
26+
name: Java ${{ matrix.java-version }} Build on ${{ matrix.operating-system }}
27+
28+
steps:
29+
- name: Check out the repo
30+
uses: actions/checkout@v2
31+
32+
- name: Set up Java
33+
uses: actions/setup-java@v1
34+
with:
35+
java-version: ${{ matrix.java-version }}
36+
- name: Cache Maven packages
37+
uses: actions/cache@v2
38+
with:
39+
path: ~/.m2
40+
key: ${{ runner.os }}-m2-${{ hashFiles('java-junit/pom.xml') }}
41+
restore-keys: ${{ runner.os }}-m2
42+
43+
- name: Build and test without Modules
44+
working-directory: java-junit
45+
run: ./mvnw -B test
46+
if: (matrix.java-version == '1.7') || (matrix.java-version == '1.8')
47+
48+
- name: Build and test with Modules
49+
working-directory: java-junit
50+
run: ./mvnw -B test -DargLine="--add-opens java.base/java.lang=ALL-UNNAMED"
51+
if: (matrix.java-version != '1.7') && (matrix.java-version != '1.8')

.github/workflows/java-junit5.yml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Test Java + JUnit 5
2+
3+
on:
4+
push:
5+
paths:
6+
- 'java-junit5/**'
7+
- '.github/workflows/java-junit5.yml'
8+
branches:
9+
- with_assertions
10+
pull_request:
11+
paths:
12+
- 'java-junit5/**'
13+
- '.github/workflows/java-junit5.yml'
14+
branches:
15+
- with_assertions
16+
17+
jobs:
18+
19+
matrix_build:
20+
runs-on: ${{ matrix.operating-system }}
21+
22+
strategy:
23+
matrix:
24+
operating-system: [ ubuntu-latest, windows-latest ]
25+
java-version: [ 1.8, 11, 16 ]
26+
name: Java ${{ matrix.java-version }} Build on ${{ matrix.operating-system }}
27+
28+
steps:
29+
- name: Check out the repo
30+
uses: actions/checkout@v2
31+
32+
- name: Set up Java
33+
uses: actions/setup-java@v1
34+
with:
35+
java-version: ${{ matrix.java-version }}
36+
37+
- name: Cache Maven packages
38+
uses: actions/cache@v2
39+
with:
40+
path: ~/.m2
41+
key: ${{ runner.os }}-m2-${{ hashFiles('java-junit5/pom.xml') }}
42+
restore-keys: ${{ runner.os }}-m2
43+
44+
- name: Build and test with Maven
45+
working-directory: java-junit5
46+
run: ./mvnw -B package
47+
48+
- name: Cache gradle wrapper
49+
uses: actions/cache@v2
50+
with:
51+
path: |
52+
~/.gradle/caches
53+
~/.gradle/wrapper
54+
key: ${{ runner.os }}-gradle-${{ hashFiles('java-junit5/**/*.gradle*', 'java-junit5/**/gradle-wrapper.properties') }}
55+
restore-keys: ${{ runner.os }}-gradle
56+
57+
- name: Build and test with Gradle
58+
working-directory: java-junit5
59+
run: ./gradlew clean test --warning-mode all
60+
if: matrix.java-version != '16'

.github/workflows/php-phpunit.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Test PHP + PHPUnit 4.8
2+
3+
on:
4+
push:
5+
paths:
6+
- 'php-phpunit/**'
7+
- '.github/workflows/php-phpunit**'
8+
branches:
9+
- with_assertions
10+
pull_request:
11+
paths:
12+
- 'php-phpunit/**'
13+
- '.github/workflows/php-phpunit**'
14+
branches:
15+
- with_assertions
16+
17+
jobs:
18+
19+
matrix_build:
20+
runs-on: ${{ matrix.operating-system }}
21+
22+
strategy:
23+
matrix:
24+
operating-system: [ ubuntu-latest, windows-latest ]
25+
php-versions: [ 5.x, 7.x ]
26+
# 8.x not supported
27+
name: PHP ${{ matrix.php-versions }} Build on ${{ matrix.operating-system }}
28+
29+
steps:
30+
- name: Check out the repo
31+
uses: actions/checkout@v2
32+
33+
- name: Setup PHP
34+
uses: shivammathur/setup-php@v2
35+
with:
36+
php-version: ${{ matrix.php-versions }}
37+
38+
- name: Test
39+
working-directory: php-phpunit
40+
run: |
41+
composer install --prefer-dist
42+
./vendor/bin/phpunit
43+
44+
- name: Test scripts Linux
45+
working-directory: php-phpunit
46+
run: |
47+
./run_first_session.sh
48+
./phpunit.sh
49+
if: matrix.operating-system == 'ubuntu-latest'
50+
51+
- name: Test scripts Windows
52+
working-directory: php-phpunit
53+
run: |
54+
.\run_first_session.bat
55+
.\phpunit.bat
56+
if: matrix.operating-system == 'windows-latest'

.github/workflows/python-unittest.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Test Python + UnitTest
2+
3+
on:
4+
push:
5+
paths:
6+
- 'python-unittest/**'
7+
- '.github/workflows/python-unittest**'
8+
branches:
9+
- with_assertions
10+
pull_request:
11+
paths:
12+
- 'python-unittest/**'
13+
- '.github/workflows/python-unittest**'
14+
branches:
15+
- with_assertions
16+
17+
jobs:
18+
19+
matrix_build:
20+
runs-on: ${{ matrix.operating-system }}
21+
22+
strategy:
23+
matrix:
24+
operating-system: [ ubuntu-latest, windows-latest ]
25+
python-version: [ 2.x, 3.x ]
26+
name: Python ${{ matrix.python-version }} Build on ${{ matrix.operating-system }}
27+
28+
steps:
29+
- name: Check out the repo
30+
uses: actions/checkout@v2
31+
32+
- name: Set up Python
33+
uses: actions/setup-python@v2
34+
with:
35+
python-version: ${{ matrix.python-version }}
36+
37+
- name: Test
38+
working-directory: python-unittest
39+
run: |
40+
python -m pip install --upgrade pip
41+
pip install -r requirements.txt
42+
python -m unittest discover -v -f test
43+
44+
- name: Test scripts Linux
45+
working-directory: python-unittest
46+
run: |
47+
./run_first_session.sh
48+
./run_tests.sh
49+
if: matrix.operating-system == 'ubuntu-latest'
50+
51+
- name: Test scripts Windows
52+
working-directory: python-unittest
53+
run: |
54+
.\run_first_session.bat
55+
.\run_tests.bat
56+
if: matrix.operating-system == 'windows-latest'

java-junit/mvnw

100644100755
File mode changed.

php-phpunit/phpunit.sh

100644100755
File mode changed.

php-phpunit/run_first_session.sh

100644100755
File mode changed.

python-unittest/run_first_session.sh

100644100755
File mode changed.

python-unittest/run_tests.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)