Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
johackim committed Apr 18, 2023
1 parent 997bbec commit 6947487
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .env.dist
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
JWT_SECRET=mys3cr3t
STRIPE_SECRET_KEY=sk_test_1234
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_1234
POSTHOG_APIKEY=phc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
POSTHOG_URL=https://posthog.example.com
TEMPLATES_URL=https://raw.githubusercontent.com/ethibox/awesome-stacks/master/templates.json
WEBHOOK_URL=https://example.com
ROOT_DOMAIN=localhost
LOCALE=fr
CUSTOM_ENV_TAIGA_SECRET=mys3cr3t
18 changes: 14 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
name: Deploy

on:
push:
branches: [master]
on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: 18

- name: Install & Tests
env:
STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }}
run: |
yarn
cp .env.dist .env
npm run test:ci
- name: Login to registry
uses: docker/login-action@v1
with:
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"lint": "next lint",
"test": "npm run test:unit && npm run test:e2e",
"test:e2e": "cypress run",
"test:unit": "jest --forceExit -i __tests__/unit/*.spec.js"
"test:unit": "jest --forceExit -i __tests__/unit/*.spec.js",
"test:ci": "concurrently -k -s last \"npm run dev\" \"npm run test\""
},
"dependencies": {
"@babel/core": "^7.21.4",
Expand Down Expand Up @@ -64,6 +65,7 @@
"@tailwindcss/forms": "^0.5.3",
"autoprefixer": "^10.4.14",
"babel-jest": "^29.5.0",
"concurrently": "^8.0.1",
"cypress": "^12.9.0",
"eslint": "^8.37.0",
"eslint-config-airbnb": "^19.0.4",
Expand Down

0 comments on commit 6947487

Please sign in to comment.