Skip to content

Commit

Permalink
Merge pull request #1196 from NicoPennec/fix/ci
Browse files Browse the repository at this point in the history
Update CI workflows
  • Loading branch information
frankrousseau authored Sep 22, 2023
2 parents 2e79714 + c8f39bc commit 2100b82
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: "Kitsu CI"
name: 'Kitsu CI'

on:
pull_request:
Expand All @@ -15,18 +15,20 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 18, 20 ]
node: [18, 20]
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "npm"
cache: 'npm'
- name: Run tests
env:
NODE_OPTIONS: "--max_old_space_size=8192"
NODE_OPTIONS: '--max_old_space_size=8192'
run: |
echo "Node.js $(node -v)"
echo "npm v$(npm -v)"
npm ci
npm run lint -- --quiet
npm run test:unit
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: "Kitsu release"
name: 'Kitsu release'

on:
push:
Expand All @@ -13,11 +13,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build release
env:
NODE_OPTIONS: "--max_old_space_size=8192"
NODE_OPTIONS: '--max_old_space_size=8192'
run: |
echo "Node.js $(node -v)"
echo "npm v$(npm -v)"
npm ci
npm run build
GIT_COMMIT="$(git rev-parse HEAD)"
Expand All @@ -35,7 +39,7 @@ jobs:
uses: ncipollo/release-action@v1
id: create_release
with:
artifacts: "kitsu-*.tgz,kitsu-*.SHA512"
artifacts: 'kitsu-*.tgz,kitsu-*.SHA512'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Update "build" branch
if: startsWith(github.ref, 'refs/tags')
Expand Down

0 comments on commit 2100b82

Please sign in to comment.