Skip to content

Commit 82a55d1

Browse files
committed
v6: Improve CI workflow
1 parent e7a3eea commit 82a55d1

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.github/workflows/ci-test.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
1-
name: "CI: Test & Coverage"
1+
name: "CI: test, coverage & build"
22

33
on: [push, pull_request]
44

55
jobs:
66
build-and-test:
77
runs-on: ubuntu-latest
88

9+
strategy:
10+
matrix:
11+
# "node_js: - stable" logic (Node 24 is current LTS/stable)
12+
node-version: [24.x]
13+
914
steps:
1015
- name: Checkout code
1116
uses: actions/checkout@v4
1217

13-
- name: Set up Node.js 20
18+
- name: Set up Node.js ${{ matrix.node-version }}
1419
uses: actions/setup-node@v4
1520
with:
16-
node-version: 22.17.1
21+
node-version: ${{ matrix.node-version }}
1722
cache: "yarn" # Automatic caching for Yarn
1823

1924
- name: Install dependencies
@@ -38,4 +43,7 @@ jobs:
3843
# repo-token: ${{ secrets.COVERALLS_REPO_TOKEN }}
3944

4045
# Optional: Explicitly point to the file if it's not found automatically
41-
path-to-lcov: ./coverage/lcov.info
46+
# path-to-lcov: ./coverage/lcov.info
47+
48+
- name: Build the library
49+
run: yarn build

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SequelizeGuard
22

3-
[![Build Status](https://travis-ci.com/lotivo/sequelize-guard.svg?branch=master)](https://travis-ci.com/lotivo/sequelize-guard) [![Coverage Status](https://coveralls.io/repos/github/lotivo/sequelize-guard/badge.svg?branch=master)](https://coveralls.io/github/lotivo/sequelize-guard?branch=master)
3+
[![CI](https://github.com/lotivo/sequelize-guard/actions/workflows/ci-test.yml/badge.svg)](https://github.com/lotivo/sequelize-guard/actions/workflows/ci-test.yml)
4+
[![Coverage Status](https://coveralls.io/repos/github/lotivo/sequelize-guard/badge.svg)](https://coveralls.io/github/lotivo/sequelize-guard)
45

56
An Authorization library for Sequelize.js.
67

0 commit comments

Comments
 (0)