*: restructuring to make testing flow nicer #8

Merged
vbatts merged 1 commit from restructure into main 2023-09-26 19:09:38 +00:00
12 changed files with 10 additions and 5 deletions

View file

@ -12,8 +12,12 @@ jobs:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v3 uses: actions/checkout@v3
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner." - name: Setup Node.js
- name: List files in the repository uses: actions/setup-node@v3
run: | with:
ls ${{ gitea.workspace }} node-version: 18.x
- name: Install packages
run: npm install
- name: Run tests
run: npm test
- run: echo "🍏 This job's status is ${{ job.status }}." - run: echo "🍏 This job's status is ${{ job.status }}."

View file

@ -5,7 +5,8 @@
"main": "server.js", "main": "server.js",
"scripts": { "scripts": {
"test": "jest", "test": "jest",
"start": "node server.js" "start": "node server.js",
"act": "act -W ./.gitea/workflows/"
}, },
"repository": { "repository": {
"type": "git", "type": "git",