Org profile page #230
Workflow file for this run
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: Vue3 Apollo Quasar CI | |
on: | |
push: | |
branches: [main] | |
paths: | |
- "vue3-apollo-quasar/**" | |
pull_request: | |
branches: [main] | |
paths: | |
- "vue3-apollo-quasar/**" | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
cache-dependency-path: vue3-apollo-quasar/yarn.lock | |
- name: Install dependencies | |
run: npm run install --frozen-lockfile | |
working-directory: vue3-apollo-quasar | |
- name: Lint files | |
run: npm run lint | |
working-directory: vue3-apollo-quasar | |
run-unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
cache-dependency-path: vue3-apollo-quasar/yarn.lock | |
- name: Install dependencies | |
run: npm run install --frozen-lockfile | |
working-directory: vue3-apollo-quasar | |
- name: Run tests | |
run: npm run test | |
working-directory: vue3-apollo-quasar | |
build: | |
runs-on: ubuntu-latest | |
needs: [lint, run-unit-tests] | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [14.x, 16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
cache-dependency-path: vue3-apollo-quasar/yarn.lock | |
- name: Install dependencies | |
run: npm run install --frozen-lockfile | |
working-directory: vue3-apollo-quasar | |
- name: Build Project | |
run: npm run build | |
working-directory: vue3-apollo-quasar |