rework project structure #1
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 Project | |
# run this each time a new push happens to our repository | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get code from repository | |
# using the github checkout action | |
# with allows you to provide configuration | |
# by default the repository that the workflow exists on will be used | |
uses: actions/[email protected] | |
- name: Install NodeJS | |
# may not necessarily have to do this | |
# nodejs comes installed on the latest ubuntu | |
uses: actions/[email protected] | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: npm ci # npm ci makes sure that you use the version in the package.lock file | |
- name: Run tests | |
run: npm test |