-
Notifications
You must be signed in to change notification settings - Fork 46
37 lines (36 loc) · 1.26 KB
/
webapp-test.yml
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
name: WebApp Test
on:
workflow_dispatch:
push:
branches-ignore: ## Ignore develop and main branches to avoid an unneeded 2nd build.
- 'develop'
- 'main'
jobs:
build-and-test:
runs-on: ubuntu-latest
container: fleek/create-react-app:node-16
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install NodeJS
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- name: Install depdendencies
run: yarn install --pure-lockfile
- name: Lint
run: yarn lint
- name: Test
run: yarn test
- name: Build
run: yarn build --mode staging
env:
VITE_REACT_APP_DEPLOY_VERSION: ${{ github.sha }}
VITE_REACT_APP_DEPLOY_ENVIRONMENT: ${{ needs.set-environment.outputs.environment }}
VITE_REACT_APP_ANALYTICS_KEY: ${{ secrets.VITE_REACT_APP_ANALYTICS_KEY }}
VITE_GATEWAY_IPFS_API_KEY: ${{secrets.VITE_GATEWAY_IPFS_API_KEY}}
VITE_ETHERSCAN_API_KEY: ${{secrets.VITE_ETHERSCAN_API_KEY}}
VITE_PINATA_CID_VERSION: ${{vars.VITE_PINATA_CID_VERSION}}
VITE_PINATA_GATEWAY: ${{vars.VITE_PINATA_GATEWAY}}
VITE_PINATA_JWT_API_KEY: ${{secrets.VITE_PINATA_JWT_API_KEY}}