Skip to content

Commit

Permalink
ci: cached dependencies to speed up GitHub workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
hwelsters committed Jan 25, 2024
1 parent acf749c commit d99f5eb
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 16 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,21 @@ name: Lint files

on:
push:
branches: [main]
# branches: [main]
pull_request:
branches: [main]
# branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: lint files
run: yarn install && yarn lint
- uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
- name: Install dependencies
run: yarn install

- name: Lint files
run: yarn lint
10 changes: 5 additions & 5 deletions .github/workflows/nextjs_bundle_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ name: 'Next.js Bundle Analysis'

on:
push:
branches:
- main
# branches:
# - main
pull_request:
branches:
- main
workflow_dispatch:
# branches:
# - main

defaults:
run:
Expand All @@ -32,6 +31,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'

- name: Install dependencies
uses: bahmutov/npm-install@v1
Expand Down
36 changes: 29 additions & 7 deletions apps/snakecode-webapp/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
Expand All @@ -14,11 +18,29 @@
"jsx": "preserve",
"incremental": true,
"paths": {
"@/*": ["./src/*"],
"@public/*": ["./public/*"],
"@root/*": ["./*"]
}
"@/*": [
"./src/*"
],
"@public/*": [
"./public/*"
],
"@root/*": [
"./*"
]
},
"plugins": [
{
"name": "next"
}
]
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}

0 comments on commit d99f5eb

Please sign in to comment.