Run Tests #2
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
name: Run Tests | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: # Allows manual runs from the Actions tab | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
# Set up .NET | |
- name: Set up .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.x.x | |
# Restore .NET tools | |
- name: Restore .NET dependencies | |
run: dotnet tool restore | |
# Install Node.js | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
# Install dependencies for Node.js project | |
- name: Install Node.js dependencies | |
run: npm install | |
- name: Run .NET tests | |
run: ./build.sh test |