- add test to ci pipeline ci.yml
Some checks are pending
CI Pipeline / japa-tests (push) Has started running
Some checks are pending
CI Pipeline / japa-tests (push) Has started running
This commit is contained in:
parent
a48a2d9704
commit
578c4180f4
7 changed files with 205 additions and 186 deletions
45
.gitea/workflows/ci.yaml
Normal file
45
.gitea/workflows/ci.yaml
Normal file
|
@ -0,0 +1,45 @@
|
|||
# This workflow will do a clean install of node dependencies, build the source code and run tests
|
||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
||||
|
||||
name: CI Pipeline
|
||||
run-name: ${{ github.actor }} is running CI pipeline
|
||||
# trigger build when pushing, or when creating a pull request
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
japa-tests:
|
||||
# run build on latest ubuntu
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:16.x
|
||||
steps:
|
||||
# this will check out the current branch (https://github.com/actions/checkout#Push-a-commit-using-the-built-in-token)
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# installing Node
|
||||
- name: Use Node.js 16.x
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
# this will use the latest Node 12 version
|
||||
node-version: 16.x
|
||||
|
||||
# install dependencies using clean install to avoid package lock updates
|
||||
# build the project if necessary
|
||||
# - run: npm run build
|
||||
# - run: cd build
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
# - run: npm ci --omit=dev
|
||||
|
||||
# finally run the tests
|
||||
# - run: npm test
|
||||
- name: Run tests
|
||||
run: node ace test
|
||||
|
||||
# # Save coverage report in Coveralls
|
||||
# - name: Coveralls
|
||||
# uses: coverallsapp/github-action@master
|
||||
# with:
|
||||
# github-token: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue