mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-13 09:33:54 +00:00
ci: reduce ci running (#3707)
This commit is contained in:
parent
131cf69a56
commit
57294a5e5a
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@ -2,9 +2,13 @@ name: CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
paths-ignore:
|
||||||
|
- 'docs/**'
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- 'docs/**'
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
@ -57,9 +61,6 @@ jobs:
|
|||||||
- name: Lint
|
- name: Lint
|
||||||
run: yarn lint
|
run: yarn lint
|
||||||
|
|
||||||
- name: Lint (docs)
|
|
||||||
run: yarn lint:docs
|
|
||||||
|
|
||||||
test-fixtures:
|
test-fixtures:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
@ -141,6 +142,11 @@ jobs:
|
|||||||
run: yarn test:types
|
run: yarn test:types
|
||||||
|
|
||||||
build-release:
|
build-release:
|
||||||
|
if: |
|
||||||
|
github.event_name == 'push' &&
|
||||||
|
!contains(github.event.head_commit.message, '[skip-release]') &&
|
||||||
|
!contains(github.event.head_commit.message, 'chore') &&
|
||||||
|
!contains(github.event.head_commit.message, 'docs')
|
||||||
needs:
|
needs:
|
||||||
- lint
|
- lint
|
||||||
- build
|
- build
|
||||||
@ -171,11 +177,6 @@ jobs:
|
|||||||
key: ${{ matrix.os }}-node-v${{ matrix.node }}-${{ github.sha }}
|
key: ${{ matrix.os }}-node-v${{ matrix.node }}-${{ github.sha }}
|
||||||
|
|
||||||
- name: Release Edge
|
- name: Release Edge
|
||||||
if: |
|
|
||||||
github.event_name == 'push' &&
|
|
||||||
!contains(github.event.head_commit.message, '[skip-release]') &&
|
|
||||||
!contains(github.event.head_commit.message, 'chore') &&
|
|
||||||
!contains(github.event.head_commit.message, 'docs')
|
|
||||||
run: ./scripts/release-edge.sh
|
run: ./scripts/release-edge.sh
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
|
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
|
||||||
|
37
.github/workflows/docs.yml
vendored
Normal file
37
.github/workflows/docs.yml
vendored
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
name: Docs
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'docs/**'
|
||||||
|
- '.github/workflows/docs.yml'
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'docs/**'
|
||||||
|
- '.github/workflows/docs.yml'
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint-docs:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
node: [14]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node }}
|
||||||
|
cache: 'yarn'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: yarn --immutable
|
||||||
|
|
||||||
|
- name: Lint (docs)
|
||||||
|
run: yarn lint:docs
|
Loading…
Reference in New Issue
Block a user