try7 #14
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: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
call-setup: | |
uses: ./.github/workflows/setup.yml | |
with: | |
node_version: '20' # Providing the required input | |
test: | |
runs-on: ubuntu-latest | |
needs: call-setup # Ensure this job starts after the setup job | |
steps: | |
- name: Checkout code # You need to checkout code again because each job starts fresh | |
uses: actions/checkout@v3 | |
- name: Run tests | |
run: pnpm test # Assuming pnpm and node_modules are correctly configured to be available |