Skip to content

Merge pull request #13 from lovelyCARDINAL/master #73

Merge pull request #13 from lovelyCARDINAL/master

Merge pull request #13 from lovelyCARDINAL/master #73

Workflow file for this run

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@v2
- name: Set Node Version
uses: actions/setup-node@v2
- 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