Skip to content

Commit

Permalink
tests added
Browse files Browse the repository at this point in the history
  • Loading branch information
BaderBC committed Aug 27, 2024
1 parent 8f8d776 commit cf9f921
Show file tree
Hide file tree
Showing 4 changed files with 1,941 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'pnpm'

- name: Install pnpm
run: npm install -g pnpm

- name: Install dependencies
run: pnpm i

- name: Test build
run: pnpm build

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ bower_components
# node-waf configuration
.lock-wscript

# Builded project:
dist/

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
},
"scripts": {
"start": "ts-node ./bin/www.ts & npm run scss",
"build": "tsc",
"watch": "nodemon ./bin/www.ts & npm run scss",
"scss": "sass --watch public/stylesheets",
"prettier:write": "prettier . --write",
Expand Down Expand Up @@ -34,6 +35,7 @@
"validate-polish": "^2.1.40"
},
"devDependencies": {
"@types/body-parser": "^1.19.5",
"@types/cookie-parser": "^1.4.7",
"@types/cors": "^2.8.17",
"@types/debug": "^4.1.12",
Expand Down
Loading

0 comments on commit cf9f921

Please sign in to comment.