forked from bitwiseops/obsidian-kobo-highlights-import
-
Notifications
You must be signed in to change notification settings - Fork 9
34 lines (34 loc) · 1.09 KB
/
npm.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
name: "npm"
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
npm:
runs-on: arc-runner
env:
USER: runner
steps:
- uses: actions/checkout@v4
- name: install packages
run: sudo apt-get update && sudo apt-get install -y curl xz-utils
- uses: cachix/install-nix-action@v26
- uses: DeterminateSystems/magic-nix-cache-action@v4
- name: Install devenv.sh
run: nix profile install tarball+https://install.devenv.sh/latest
- name: Setup For Test
shell: devenv shell bash -e {0}
run: |
mkdir $HOME/.aws
vault kv get -mount="secret" -field credentials "ci/aws" > $HOME/.aws/credentials
aws --endpoint-url http://100.82.97.39:9000 s3 cp s3://repo-obsidian-kobo-highlights-import/KoboReader.sqlite KoboReader.sqlite
- name: Lint
shell: devenv shell bash -e {0}
run: npm run lint
- name: Test
shell: devenv shell bash -e {0}
run: npm run test
- name: Build
shell: devenv shell bash -e {0}
run: npm run build