File tree Expand file tree Collapse file tree 13 files changed +2896
-1388
lines changed
Expand file tree Collapse file tree 13 files changed +2896
-1388
lines changed Original file line number Diff line number Diff line change 1+ module . exports = {
2+ env : {
3+ browser : true ,
4+ es2021 : true ,
5+ jest : true ,
6+ } ,
7+ extends : [
8+ "plugin:react/recommended" ,
9+ "airbnb" ,
10+ "plugin:react-hooks/recommended" ,
11+ ] ,
12+ parserOptions : {
13+ ecmaFeatures : {
14+ jsx : true ,
15+ } ,
16+ ecmaVersion : 12 ,
17+ sourceType : "module" ,
18+ } ,
19+ plugins : [ "react" ] ,
20+ rules : {
21+ "react/react-in-jsx-scope" : 0 ,
22+ } ,
23+ overrides : [
24+ {
25+ files : [ "cypress/**/*" ] ,
26+ plugins : [ "cypress" ] ,
27+ env : {
28+ "cypress/globals" : true ,
29+ } ,
30+ rules : {
31+ "import/no-extraneous-dependencies" : 0 ,
32+ } ,
33+ } ,
34+ ] ,
35+ } ;
Original file line number Diff line number Diff line change 1+ name : seechange pipeline
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ paths-ignore :
7+ - ' **.md'
8+ - ' .gitignore'
9+ - ' .nvmrc'
10+ pull_request :
11+ branches : [ main ]
12+ paths-ignore :
13+ - ' **.md'
14+ - ' .gitignore'
15+ - ' .nvmrc'
16+
17+ jobs :
18+ build :
19+
20+ runs-on : ubuntu-latest
21+
22+ steps :
23+ - name : Checkout repository
24+ uses : actions/checkout@v2
25+
26+ - name : set node version with nvm
27+ shell : bash --login {0}
28+ run : nvm install
29+
30+ - name : Cache dependencies
31+ uses : actions/cache@v2
32+ with :
33+ path : |
34+ **/node_modules
35+ key : ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
36+
37+ - name : Install
38+ run : npm install
39+
40+ - name : Build
41+ run : npm run build --if-present
42+
43+ - name : Deploy to gh-pages
44+ run : |
45+ git config user.email hanqing.tan@gmail.com
46+ git config user.name hqtan
47+ git remote set-url origin https://"${github_token}"@github.com/${repository}
48+ npm run deploy
49+ env :
50+ user_name : ' civic-makerbot'
51+ user_email : ' civic-makerbot@users.noreply.github.com'
52+ github_token : ${{ secrets.ACTIONS_DEPLOY_ACCESS_TOKEN }}
53+ repository : ${{ github.repository }}
Original file line number Diff line number Diff line change 1- .DS_Store
1+ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+ # IDE
4+ .vscode
5+ .idea
6+
7+ # dependencies
28/node_modules
9+ /.pnp
10+ .pnp.js
11+ package-lock.json
12+
13+ # build
14+ /tmp
15+
16+ # testing
17+ /coverage
18+ /cypress /screenshots
19+ /cypress /videos
20+
21+ # misc
22+ .DS_Store
23+ .env.local
24+ .env.development.local
25+ .env.test.local
326.eslintcache
27+
28+ npm-debug.log *
29+ yarn-debug.log *
30+ yarn-error.log *
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ {
2+ "integrationFolder" : " cypress" ,
3+ "baseUrl" : " http://localhost:3000/" ,
4+ "video" : false ,
5+ "screenshot" : false
6+ }
You can’t perform that action at this time.
0 commit comments