Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/danielroe/vue-sanity. Sanity integration for Vue Composition API
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677name: ci
on: push
jobs: lint: runs-on: ubuntu-latest
steps: - uses: actions/checkout@v2
- name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v2 id: cache with: path: | ${{ steps.yarn-cache-dir-path.outputs.dir }} .yarn/* !.yarn/releases !.yarn/plugins !.yarn/sdks !.yarn/versions .pnp.js key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('.pnp.js') }} restore-keys: | ${{ runner.os }}-yarn
- name: Install dependencies if: steps.cache.outputs.cache-hit != 'true' run: yarn
- name: Lint project run: yarn lint
test: runs-on: ubuntu-latest
steps: - uses: actions/checkout@v2
- name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v2 id: cache with: path: | ${{ steps.yarn-cache-dir-path.outputs.dir }} .yarn/* !.yarn/releases !.yarn/plugins !.yarn/sdks !.yarn/versions .pnp.js key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('.pnp.js') }} restore-keys: | ${{ runner.os }}-yarn
- name: Install dependencies if: steps.cache.outputs.cache-hit != 'true' run: yarn
- name: Build project run: yarn compile
- name: Test project run: yarn test
- name: Coverage run: yarn codecov env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}