-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (40 loc) · 1.26 KB
/
pr-checks.yaml
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
name: PR checks
on: pull_request
jobs:
lint:
name: Lint and build
runs-on: ubuntu-latest
environment: alpha
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 20.x
- name: Create .npmrc
run: echo '//registry.npmjs.org/:_authToken= ${{ secrets.NPM_TOKEN }}' >> .npmrc
- name: Create env file
run: |
touch .env.production
echo POSTHOG_KEY=${{ secrets.POSTHOG_KEY }} >> .env.production
echo GLACIER_URL=${{ secrets.GLACIER_URL }} >> .env.production
echo PROXY_URL=${{ secrets.PROXY_URL }} >> .env.production
echo CORE_EXTENSION_LANDING_URL=${{ secrets.CORE_EXTENSION_LANDING_URL }} >> .env.production
- name: Install dependencies
run: yarn setup
- name: Lint
run: yarn lint
- name: Typecheck
run: yarn typecheck
- name: Check if localization was updated
run: |
yarn scanner
git --no-pager diff
if [[ $(git status --short) == '' ]]; then exit 0; else exit 1; fi
- name: Test
run: yarn test
- name: Build extension
run: yarn build