Skip to content

Commit

Permalink
🔧 (ci) add nuxt3 ci ; cable release script on it
Browse files Browse the repository at this point in the history
  • Loading branch information
Tahul committed Aug 3, 2021
1 parent 3a1f556 commit e2d96c2
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ jobs:
- name: Build
run: yarn build

- name: Release Edge
if: github.event_name == 'push'
run: ./scripts/release-edge.sh
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
# - name: Release Edge
# if: github.event_name == 'push'
# run: ./scripts/release-edge.sh
# env:
# NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
60 changes: 60 additions & 0 deletions .github/workflows/ci-nuxt3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: ci-nuxt3

on:
push:
branches:
- nuxt3
pull_request:
branches:
- nuxt3

jobs:
ci:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest] # macos-latest, windows-latest
node: [16]

steps:
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: Checkout
uses: actions/checkout@master
with:
persist-credentials: false
fetch-depth: 0

- name: Cache
uses: actions/cache@v2
with:
path: node_modules
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}

- name: Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn

- name: Lint
run: yarn lint

- name: Prepare
run: node ./node_modules/playwright/install.js

- name: Test
run: yarn test

- name: Coverage
uses: codecov/codecov-action@v2

- name: Build
run: yarn build

- name: Release Edge
if: github.event_name == 'push'
run: ./scripts/release-edge.sh
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}

0 comments on commit e2d96c2

Please sign in to comment.