Merge pull request #38 from 4-point-0/rimatik/near-provider-buy-for-user #90
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: Run linter and tests | |
on: [push] | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.12.0' | |
# global cache directory | |
cache: 'yarn' | |
cache-dependency-path: '**/yarn.lock' | |
# will cache node modules and only re-install them only if yarn.lock get updated | |
- name: setup cache node_modules | |
uses: actions/cache@v3 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
- name: install modules | |
run: yarn install | |
- name: run eslint | |
run: yarn lint | |
- name: run serice and controller tests | |
run: yarn test |