Check version #24
Workflow file for this run
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: Test | |
on: | |
push: | |
branches: | |
- fix | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16.13.1 | |
- name: Setup MongoDB | |
uses: supercharge/[email protected] | |
with: | |
mongodb-version: 4.2 | |
- name: Setup test environment | |
run: | | |
sudo apt update && sudo apt install -y graphicsmagick | |
gm | |
gm version | |
npm ci | |
npm install -g codecov | |
echo '${{ secrets.TEST_CONFIG }}' >> lib/config/config.json | |
- name: Run tests | |
run: | | |
DEBUG=gm npm test | |
codecov -t ${{ secrets.CODECOV_TOKEN }} | |
docker: | |
name: Docker build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Build | |
uses: docker/build-push-action@v5 | |
with: | |
file: Dockerfile.Prod | |
push: false |