This commit is contained in:
parent
4f7835ccbe
commit
cf0c3f20ff
1 changed files with 34 additions and 0 deletions
34
.gitea/workflows/test.yaml
Normal file
34
.gitea/workflows/test.yaml
Normal file
|
@ -0,0 +1,34 @@
|
|||
name: Outbag Tests
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
services:
|
||||
database:
|
||||
image: mariadb
|
||||
env:
|
||||
MYSQL_DATABASE: outbag
|
||||
MYSQL_USER: outbag
|
||||
MYSQL_PASSWORD: 12345678
|
||||
MYSQL_ROOT_PASSWORD: 12345678
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
npm ci
|
||||
mkdir build
|
||||
npm run prepublish
|
||||
npm run bundleRelease
|
||||
apk add openssl
|
||||
- name: Generate Self-Signed Cert
|
||||
run:
|
||||
sh genSelfSignedCert.sh
|
||||
- name: Run Tests
|
||||
run: |
|
||||
node tests/ws.js ci
|
||||
node tests/post.js ci
|
Loading…
Reference in a new issue