-
Notifications
You must be signed in to change notification settings - Fork 4
114 lines (114 loc) · 3.57 KB
/
Copy pathci.yml
File metadata and controls
114 lines (114 loc) · 3.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: CI
on:
push:
branches: [ next ]
pull_request:
branches: [main, development, next]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GHP_AUTH_TOKEN }}" >> ~/.npmrc
echo "@algodex:registry=https://npm.pkg.github.com" >> ~/.npmrc
yarn
env:
NPM_AUTH_TOKEN: ${{ secrets.GHP_AUTH_TOKEN }}
- name: Lint Files
run: yarn test-lint
jest:
name: Jest
runs-on: ubuntu-latest
needs: [lint]
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GHP_AUTH_TOKEN }}" >> ~/.npmrc
echo "@algodex:registry=https://npm.pkg.github.com" >> ~/.npmrc
yarn
env:
NPM_AUTH_TOKEN: ${{ secrets.GHP_AUTH_TOKEN }}
- name: Run Unit Tests
run: yarn test-jest
#- uses: paambaati/codeclimate-action@v3.0.0
# env:
# CC_TEST_REPORTER_ID: 6928d153a461a3dbacd2d88ddbe0d6005c98f588abb27cefe006f299a5ffb471
# with:
# coverageCommand: yarn coverage
e2e:
name: End<->End
runs-on: ubuntu-latest
needs: [jest]
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GHP_AUTH_TOKEN }}" >> ~/.npmrc
echo "@algodex:registry=https://npm.pkg.github.com" >> ~/.npmrc
node --version
yarn
env:
NPM_AUTH_TOKEN: ${{ secrets.GHP_AUTH_TOKEN }}
- name: Run Cypress
run: yarn test-cypress
env:
WAIT_ON_TIMEOUT: 600000
# chromatic-deployment:
# name: Storybook
# runs-on: ubuntu-latest
# needs: [e2e]
# env:
# NODE_ENV: test
# steps:
# - uses: actions/checkout@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# - name: Install dependencies
# run: |
# echo "//npm.pkg.github.com/:_authToken=${{ secrets.GHP_AUTH_TOKEN }}" >> ~/.npmrc
# echo "@algodex:registry=https://npm.pkg.github.com" >> ~/.npmrc
# yarn
# env:
# NPM_AUTH_TOKEN: ${{ secrets.GHP_AUTH_TOKEN }}
# - name: Publish to Chromatic
# uses: chromaui/action@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
#sauce:
# name: Saucelabs
# runs-on: ubuntu-latest
# # TODO: Only run on pr or push to main, use manual testing tunnels for development
# needs: [e2e]
# if: github.ref == 'refs/heads/main'
# steps:
# - uses: actions/checkout@v2
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# - name: Install dependencies
# run: |
# echo "//npm.pkg.github.com/:_authToken=${{ secrets.GHP_AUTH_TOKEN }}" >> ~/.npmrc
# echo "@algodex:registry=https://npm.pkg.github.com" >> ~/.npmrc
# yarn
# env:
# NPM_AUTH_TOKEN: ${{ secrets.GHP_AUTH_TOKEN }}
# # Saucelabs
# - name: Run Saucelabs
# uses: saucelabs/saucectl-run-action@v1
# with:
# sauce-username: ${{ secrets.SAUCE_USERNAME }}
# sauce-access-key: ${{ secrets.SAUCE_ACCESS_KEY }}