Merge pull request #366 from lenneTech/develop #529
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 | |
on: | |
push: | |
branches: | |
- '*/*' | |
- '*' | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.15] | |
mongodb-version: [4.4] | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v2 | |
- name: Use Node.js 18.15 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 18.15 | |
- name: Start MongoDB | |
uses: supercharge/mongodb-github-action@1.3.0 | |
with: | |
mongodb-version: 4.4 | |
- name: Install dependencies | |
run: npm install | |
- name: Optimize and check | |
run: npm run prepublishOnly | |
- name: Build | |
run: npm run build | |
- name: Save build | |
uses: actions/upload-artifact@v1 | |
with: | |
name: build | |
path: ./dist |