Adds config to repo #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Test | |
on: push | |
jobs: | |
########################################################################### | |
## Build Job | |
########################################################################### | |
test: | |
if: true | |
runs-on: ubuntu-latest | |
services: | |
mongodb: | |
image: mongo:4.4 | |
ports: | |
- 27017:27017 | |
env: | |
ENABLE_ARTIFACTS: false | |
NPM_EMAIL: ${{ secrets.NPM_EMAIL }} | |
NPM_USERNAME: ${{ secrets.NPM_USERNAME }} | |
NPM_PASSWORD: ${{ secrets.NPM_PASSWORD }} | |
LICENSE_KEY: ${{ secrets.LICENSE_KEY }} | |
TEST_SUITE: 1 | |
PDF_SERVER: http://localhost:4005 | |
PROJECT_PLAN: trial | |
ADMIN_KEY: thisIsMyXAdminKey | |
FILTER_ACCESS: false | |
FORMIO_PDF_APIKEY: ${{ secrets.FORMIO_PDF_APIKEY }} | |
LICENSE_REMOTE: true | |
DROPBOX_CLIENTID: client123 | |
DROPBOX_CLIENTSECRET: clientsecret123 | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- run: echo "Triggered by ${{ github.event_name }} event." | |
- name: Check out repository code ${{ github.repository }} on ${{ github.ref }} | |
uses: actions/checkout@v3 | |
- name: Set up SSH key | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_KEY }} | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: Installing dependencies | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: install --frozen-lockfile | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.PKG_TOKEN }} | |
- name: Lint | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: lint | |
- name: Build | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: build | |
- name: Test | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: test | |
- name: List workspace contents | |
run: | | |
ls -al |