Merge pull request #21 from wmde/ores-to-liftwing #32
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: Auto Deploy | |
on: | |
push: | |
branches: [main] # run on pushes to main | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 # setup the repository in the runner | |
- name: Setup Node.js # setup Node.js in the runner | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '12' | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: ${{ runner.os }}-node- | |
- run: npm ci # install dependencies | |
- run: npm run test:unit # run the tests | |
- run: npm run build --if-present # build the project |