Skip to content

Commit

Permalink
more github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vorant94 committed Jun 9, 2024
1 parent a2aa6c9 commit 7752fa6
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 6 deletions.
12 changes: 12 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Setup

runs:
using: 'composite'
steps:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- run: npm ci --ignore-scripts --no-audit
shell: bash
16 changes: 10 additions & 6 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,21 @@ concurrency:
cancel-in-progress: false

jobs:
generate:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- uses: ./.github/actions/setup

- run: npm run format:check

generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- run: npm ci --ignore-scripts --no-audit
- uses: ./.github/actions/setup

- run: npm run build --workspace @sofash/cli

Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/deps-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Dependencies check

on:
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:

jobs:
check_updates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/setup

- run: npm outdated

0 comments on commit 7752fa6

Please sign in to comment.