Merge pull request #55 from SolidZORO/dependabot/npm_and_yarn/class-v… #54
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: leaa-api | |
on: | |
push: | |
branches: | |
- master | |
- restful | |
- graphql | |
jobs: | |
test: | |
name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node_version: [12.x, 14.x] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js ${{ matrix.node_version }} | |
uses: actions/setup-node@v1 | |
with: | |
version: ${{ matrix.node_version }} | |
- name: npm install, build and test | |
env: | |
PACKAGE_LOCATION: packages/leaa-api | |
run: | | |
pwd | |
ls -l | |
cd "$PACKAGE_LOCATION" | |
ls -l | |
mv .env.example .env | |
yarn install | |
yarn test:codecov | |
yarn codecov |