Skip to content

Commit d19b3ea

Browse files
Merge pull request #2 from PapperlapappYT/test-pattern
testing patterns
2 parents f65ce11 + 21156c7 commit d19b3ea

23 files changed

+3848
-687
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build, Test, and Lint
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout repository
11+
uses: actions/checkout@v3
12+
13+
- name: Set up Node.js
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: '20'
17+
18+
- name: Install dependencies
19+
run: npm install
20+
env:
21+
PAPPERLAPAPP_NPM_TOKEN: ${{secrets.PAPPERLAPAPP_TOKEN}}
22+
23+
- name: Build the project
24+
run: npm run build
25+
26+
- name: Run tests
27+
run: npm test
28+
29+
- name: Lint the code
30+
run: npm run lint

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Ignore artifacts:
2+
build
3+
coverage

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ npx next dev
1111
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
1212

1313
## Use prediction package
14+
1415
To be able to use the [papperlapapp prediction package](https://github.com/PapperlapappYT/papperlapapp-coffee-prediction), you have to create a Github Token with at least packages read scope.
16+
1517
We use direnv to manange our env here. Please `brew install direnv` and `direnv allow` in the root of this project.
1618
Then `cp .envrc.sample .envrc` and add your token to the `.envrc` file.
1719
Then `direnv allow` again.
1820
Finally you can run `npm i`
19-
The tinkering with direnv is one time only. You might only have to do this again if you add new env variables.
21+
The tinkering with direnv is one time only. You might only have to do this again if you add new env variables.
22+

0 commit comments

Comments
 (0)