Skip to content

Commit

Permalink
CI: simplify workflows with files in main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
remileduc committed Nov 9, 2023
1 parent 310e59d commit 6554034
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .github/actions/package-install/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ description: Install Node.js, NPM, and the package's NPM dependencies, and cache
runs:
using: composite
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/_build-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: 📥 Install
uses: ./.github/actions/package-install
uses: remileduc/vcards-io/.github/actions/package-install@main

- name: Build
run: npm run build
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ jobs:
name: Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: 📥 Install
uses: ./.github/actions/package-install
uses: remileduc/vcards-io/.github/actions/package-install@main

- name: Biuld documentation
run: npm run doc
6 changes: 6 additions & 0 deletions .github/workflows/_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ jobs:
tests:
name: Tests
runs-on: ubuntu-latest

permissions:
contents: read
actions: read
checks: write

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@ on:
- main

concurrency:
group: ${{ github.ref }}
group: ci-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read
actions: read
checks: write
permissions: {}

jobs:
call-build-lint:
Expand Down

0 comments on commit 6554034

Please sign in to comment.