Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI workflows #1196

Merged
merged 2 commits into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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