including .mocharc #840
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: Service core CI | |
on: | |
pull_request: | |
branches: | |
- '*' | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
node-version: [18.16.0] | |
steps: | |
- name: Install `just` | |
uses: extractions/setup-just@v2 | |
- name: Download master branch | |
uses: actions/checkout@v4 | |
- name: Install Node.js with version ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
# there is one private package (lib-release) used as npm package, so we need | |
# to authenticate | |
- name: Login to github | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.TECH_PRYV_SSH_KEY }} | |
- name: Install & run nats-server, mongodb, influxdb | |
run: ./scripts/setup-ci | |
- name: Install node modules | |
run: just install-stable | |
- name: Run all tests | |
run: IS_CI=true just test all |