-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (33 loc) · 987 Bytes
/
unit-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
name: Unit test for MediaWikiApi core
on:
push:
branches: [master, dev, actions]
pull_request:
branches: [master, dev, actions]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Node Version
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Init deps
run: |
npm i -g pnpm
pnpm i
- name: Build
run: |
pnpm build
- name: Run test
env:
MOEGIRL_API_USER_AGENT: ${{ secrets.MOEGIRL_API_USER_AGENT }}
MOEGIRL_USERNAME: ${{ secrets.MOEGIRL_USERNAME }}
MOEGIRL_PASSWORD: ${{ secrets.MOEGIRL_PASSWORD }}
run: |
pnpm test