- use latest prettier 3.0 with eslint-plugin-prettier: 5.0.0-alpha.2
All checks were successful
CI Pipeline / japa-tests (push) Successful in 46s
All checks were successful
CI Pipeline / japa-tests (push) Successful in 46s
- npm normal updates - add all xslt and style asstes in extra folder public/assets2 - linting corrections - delete local .env.test from git tracking: git rm --cached .env.test - add .env.test into .gitignore file - add edit functionality for editing by submitter - npm updates -added xslt3 packeage for builfing sef files - added Language.ts class vor language table - added version to datasetxml2oai-pmh.xslt
This commit is contained in:
parent
f403c3109f
commit
4714dfdd94
70 changed files with 22920 additions and 17407 deletions
|
@ -7,63 +7,89 @@ run-name: ${{ github.actor }} is running CI pipeline
|
|||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
# Label of the container job
|
||||
japa-tests:
|
||||
# run build on latest ubuntu
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
container: node:16-bullseye
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres
|
||||
mydb:
|
||||
image: postgres:latest
|
||||
env:
|
||||
POSTGRES_USER: ProjectName
|
||||
POSTGRES_PASSWORD: password
|
||||
POSTGRES_DB: ProjectName-test
|
||||
POSTGRES_USER: alice
|
||||
POSTGRES_PASSWORD: iEx4Vj7zBb6
|
||||
POSTGRES_DB: tethys_dev
|
||||
ports:
|
||||
# Maps tcp port 5432 on service container to the host
|
||||
- 5432:5432
|
||||
# Set health checks to wait until postgres has started
|
||||
options: >-
|
||||
--health-cmd pg_isready
|
||||
--health-interval 10s
|
||||
--health-timeout 5s
|
||||
--health-retries 5
|
||||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
||||
|
||||
|
||||
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
|
||||
- name: 1 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
|
||||
# - name: 2 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
|
||||
- name: 3 Install dependencies
|
||||
run: npm ci
|
||||
# - run: npm ci --omit=dev
|
||||
|
||||
- name: 4 Create .env.test file
|
||||
run: cp .env.example .env.test
|
||||
|
||||
- name: 5 connection
|
||||
run: echo "DB_CONNECTION=pg" >> .env.test
|
||||
&& echo "PG_HOST=172.17.0.2" >> .env.test
|
||||
&& echo "PG_PORT=5432" >> .env.test
|
||||
&& echo "PG_USER=alice" >> .env.test
|
||||
&& echo "PG_PASSWORD=iEx4Vj7zBb6" >> .env.test
|
||||
&& echo "PG_DB_NAME=tethys_dev" >> .env.test
|
||||
&& echo "NODE_ENV=test" >> .env.test
|
||||
&& echo "ASSETS_DRIVER=fake" >> .env.test
|
||||
&& echo "SESSION_DRIVER=memory" >> .env.test
|
||||
&& echo "HASH_DRIVER=bcrypt" >> .env.test
|
||||
&& echo "HOST=127.0.0.1" >> .env.test
|
||||
&& echo "PORT=3333" >> .env.test
|
||||
&& echo "APP_NAME=AdonisJs" >> .env.test
|
||||
&& echo "APP_URL=http://${HOST}:${PORT}" >> .env.test
|
||||
&& echo "CACHE_VIEWS=false" >> .env.test
|
||||
&& echo "APP_KEY=pfi5N2ACN4tMJ5d8d8BPHfh3FEuvleej" >> .env.test
|
||||
&& echo "DRIVE_DISK=local" >> .env.test
|
||||
|
||||
# finally run the tests
|
||||
# - run: npm test
|
||||
- name: Run tests
|
||||
run: node ace test
|
||||
env:
|
||||
DB_CONNECTION: pg
|
||||
PG_HOST: postgres
|
||||
PG_PORT: 5432
|
||||
PG_USER: ProjectName
|
||||
PG_PASSWORD: password
|
||||
PG_DB_NAME: ProjectName-test
|
||||
PORT: 3333
|
||||
HOST: 0.0.0.0
|
||||
APP_KEY: somefakekeythatis>16characters
|
||||
NODE_ENV: test
|
||||
ASSETS_DRIVER: fake
|
||||
SESSION_DRIVER: memory
|
||||
CACHE_VIEWS: false
|
||||
DRIVE_DISK: local
|
||||
|
||||
- name: 6 Run tests
|
||||
run: npm run test
|
||||
# env:
|
||||
# DB_CONNECTION: pg
|
||||
# PG_HOST: postgres
|
||||
# PG_PORT: 5432
|
||||
# PG_USER: tethys_test
|
||||
# PG_PASSWORD: iEx4Vj7zBb6
|
||||
# PG_DB_NAME: tethys_dev
|
||||
# PORT: 3333
|
||||
# HOST: 0.0.0.0
|
||||
# APP_KEY: somefakekeythatis>16characters
|
||||
# NODE_ENV: test
|
||||
# ASSETS_DRIVER: fake
|
||||
# SESSION_DRIVER: memory
|
||||
# CACHE_VIEWS: false
|
||||
# DRIVE_DISK: local
|
||||
# # Save coverage report in Coveralls
|
||||
# - name: Coveralls
|
||||
# uses: coverallsapp/github-action@master
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue