-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
22876fd
commit 0dd1674
Showing
1 changed file
with
14 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Run Test Suite | ||
name: Run Tests | ||
|
||
on: | ||
push: | ||
|
@@ -16,9 +16,8 @@ concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
# This test suite will run for every language version for every OS defined in the matrix | ||
tests-os-matrix: | ||
name: '${{ matrix.language_version }} on ${{ matrix.os }}' | ||
tests: | ||
name: 'Node.Js ${{ matrix.language_version }} on ${{ matrix.os }}' | ||
runs-on: '${{ matrix.os }}-latest' | ||
|
||
strategy: | ||
|
@@ -28,76 +27,37 @@ jobs: | |
- ubuntu | ||
- windows | ||
- macos | ||
# Place your language versions you want to test | ||
language_version: ['v1.0.0', 'v2.0.0'] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Setup your language (This is specific to each language) | ||
# - name: Set up language ${{ matrix.language_version }} | ||
# uses: actions/setup-python@v5 | ||
# with: | ||
# language-version: ${{ matrix.language_version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
set -xe | ||
echo "Installed dependencies" | ||
# python -m pip install -r requirements.txt (for example) | ||
- name: Build project | ||
run: | | ||
set -xe | ||
echo "Building" | ||
# Place your code to build your project here | ||
- name: Testing | ||
run: | | ||
set -xe | ||
echo "Testing project" | ||
# Place your code to test your project here | ||
|
||
# This test will run once | ||
tests: | ||
name: 'Testing' | ||
runs-on: ubuntu-latest | ||
node_version: | ||
- 18 | ||
- 20 | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Setup your language (This is specific to each language) | ||
# - name: Set up language ${{ matrix.language_version }} | ||
# uses: actions/setup-python@v5 | ||
# with: | ||
# language-version: ${{ matrix.language_version }} | ||
- name: Set up Node.js ${{ matrix.node_version }} | ||
uses: actions/[email protected] | ||
with: | ||
cache: npm | ||
node-version: ${{ matrix.node_version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
set -xe | ||
echo "Installed dependencies" | ||
# python -m pip install -r requirements.txt (for example) | ||
- name: Build project | ||
run: | | ||
set -xe | ||
echo "Building" | ||
# Place your code to build your project here | ||
npm i | ||
- name: Testing | ||
run: | | ||
set -xe | ||
echo "Testing project" | ||
# Place your code to test your project here | ||
# npm run test | ||
# It is recommended to require this check to pass before merging a pull request | ||
check: | ||
if: always() | ||
name: Tests Successful | ||
runs-on: ubuntu-latest | ||
needs: [tests-os-matrix, tests] | ||
needs: [tests] | ||
|
||
steps: | ||
- name: Whether the whole test suite passed | ||
|