Skip to content

Commit

Permalink
feat: add github actions and fix some eslint issues (#11)
Browse files Browse the repository at this point in the history
* feat: add github actions and fix some eslint issues

* fix: ensure lock file is up to date

* fix: add svg generation to build step

* fix: ensure we commit the next-env.d.ts file
  • Loading branch information
JanStevens authored Dec 20, 2023
1 parent b50f146 commit ea06de7
Show file tree
Hide file tree
Showing 15 changed files with 305 additions and 510 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.next
node_modules
public
styled-system
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @JanStevens
35 changes: 35 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI
# Controls when the workflow will run
on: [pull_request]

permissions:
packages: read
repository-projects: read
contents: read

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
lint:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.17
cache: 'npm'

- name: Update npm
run: npm i -g npm

- name: Install modules
run: npm ci

- name: Run ESLint
run: npm run ci:eslint

- name: Run TSC
run: npm run ci:tsc
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ yarn-error.log*

# typescript
*.tsbuildinfo
next-env.d.ts

# Ignore workerbox autogenerated files
public/sw.js
Expand Down
5 changes: 5 additions & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
Loading

0 comments on commit ea06de7

Please sign in to comment.