fix: matriculas URL #141
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/release | |
on: push | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- run: npm install | |
- run: npm run lint | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Start MongoDB | |
uses: supercharge/[email protected] | |
with: | |
mongodb-version: 4.2 | |
- name: Start Redis | |
uses: supercharge/[email protected] | |
with: | |
redis-version: 5 | |
- run: cd app && yarn install | |
- run: cd app && yarn test | |
release: | |
needs: test | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/master' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up npm | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Install caprover | |
run: npm install -g caprover | |
- name: Caprover Deploy | |
run: caprover deploy -h 'https://captain.captain.sv.ufabcnext.com' -p '${{ secrets.CAPROVER_PASSWORD }}' -b 'master' -a 'api' |