-
Notifications
You must be signed in to change notification settings - Fork 23
41 lines (37 loc) · 1.2 KB
/
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
38
39
40
41
name: Test
on: []
jobs:
test:
name: 🧪 Lint and test
strategy:
matrix:
os:
- linux-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- name: Create .npmrc file
run: |
echo "registry=https://registry.yarnpkg.com/" > .npmrc
echo "@internxt:registry=https://npm.pkg.github.com" >> .npmrc
# You cannot read packages from other private repos with GITHUB_TOKEN
# You have to use a PAT instead https://github.com/actions/setup-node/issues/49
echo //npm.pkg.github.com/:_authToken=${{ secrets.PERSONAL_ACCESS_TOKEN }} >> .npmrc
echo "always-auth=true" >> .npmrc
- name: Install dependencies
uses: bahmutov/npm-install@v1
with:
install-command: yarn --ignore-scripts --frozen-lockfile
- name: Lint
run: yarn run lint
- name: Build processes
run: yarn build:main && yarn build:renderer
- name: Run test
run: yarn test:unit