Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/build-test-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build, Test, and Lint

on: [push]

jobs:
build:
runs-on: ubuntu-latest

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

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

- name: Install dependencies
run: npm install
env:
PAPPERLAPAPP_NPM_TOKEN: ${{secrets.PAPPERLAPAPP_TOKEN}}

- name: Build the project
run: npm run build

- name: Run tests
run: npm test

- name: Lint the code
run: npm run lint
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore artifacts:
build
coverage
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ npx next dev
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

## Use prediction package

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.

We use direnv to manange our env here. Please `brew install direnv` and `direnv allow` in the root of this project.
Then `cp .envrc.sample .envrc` and add your token to the `.envrc` file.
Then `direnv allow` again.
Finally you can run `npm i`
The tinkering with direnv is one time only. You might only have to do this again if you add new env variables.
The tinkering with direnv is one time only. You might only have to do this again if you add new env variables.

Loading