Skip to content

Commit

Permalink
Add CI validation for new master (#153)
Browse files Browse the repository at this point in the history
* replace test.yml

* remove frozen

* update yarn lock

* update validate change

* update node

* build

* build

* add env variables
  • Loading branch information
jojo-stripe authored Jun 6, 2024
1 parent 3974b81 commit f4feb44
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
name: build

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

env:
STRIPE_SECRET_KEY: sk_secret_key
STRIPE_PUBLIC_KEY: pk_pub_key
NEXT_PUBLIC_STRIPE_PUBLIC_KEY: pk_pub_key
APP_NAME: Pose
APP_NAME: Furever
PORT: 3000
SECRET: S3cr3t
MONGO_URI: mongodb://localhost/pose
MONGO_URI: 'mongodb://localhost/furever'

jobs:
test:
Expand All @@ -23,6 +22,6 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 20
- run: npm install --frozen-lockfile
- run: npm run build
- run: npm run lint
- run: yarn install --frozen-lockfile
- run: yarn run validate-change
- run: yarn run build
2 changes: 1 addition & 1 deletion app/components/DataRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function DataRequest({
}
};
setTimeout(() => fetchData(), 10000);
}, []);
});

return <>{children}</>;
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"lint": "next lint && npm run prettier-check",
"prettier": "prettier './**/*.{js,ts,md,html,css,tsx}' --write",
"prettier-check": "prettier './**/*.{js,ts,md,html,tsx}' --check",
"typescript": "tsc -p ."
"typescript": "tsc -p .",
"validate-change": "yarn lint && yarn typescript"
},
"dependencies": {
"@emotion/react": "^11.11.4",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4511,10 +4511,10 @@ typed-array-length@^1.0.6:
is-typed-array "^1.1.13"
possible-typed-array-names "^1.0.0"

typescript@^5.3:
version "5.4.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611"
integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==
typescript@5.4.3:
version "5.4.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.3.tgz#5c6fedd4c87bee01cd7a528a30145521f8e0feff"
integrity sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg==

unbox-primitive@^1.0.2:
version "1.0.2"
Expand Down

0 comments on commit f4feb44

Please sign in to comment.