Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/sadmann7/skateshop
Browse files Browse the repository at this point in the history
  • Loading branch information
sadmann7 committed Jun 24, 2023
2 parents ad2a903 + 68c2f63 commit 3424d4a
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 1 deletion.
93 changes: 93 additions & 0 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: Code check

on: [push, pull_request]

env:
DATABASE_URL: "fake"
CLERK_SECRET_KEY: "fake"
UPLOADTHING_SECRET: "fake"
UPLOADTHING_APP_ID: "fake"
STRIPE_API_KEY: "fake"
STRIPE_WEBHOOK_SECRET: "fake"
STRIPE_PRO_STORE_PRICE_ID: "fake"
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: "fake"

jobs:
lint:
runs-on: ubuntu-latest
name: Lint
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 8.6.0
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

- run: pnpm lint

- name: Print Environment Variable
run: echo $MY_ENV_VAR

tsc:
runs-on: ubuntu-latest
name: TypeScript
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 8.6.0
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

- run: pnpm typecheck
6 changes: 6 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,11 @@ const config = {
experimental: {
serverActions: true,
},
typescript: {
ignoreBuildErrors: true,
},
eslint: {
ignoreDuringBuilds: true,
},
}
export default config
6 changes: 5 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3424d4a

Please sign in to comment.