Skip to content

Commit 71e68a4

Browse files
committed
ci: attempt at migrating to GitHub Actions
1 parent 04dc6ef commit 71e68a4

File tree

3 files changed

+33
-17
lines changed

3 files changed

+33
-17
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [18, 23]
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
cache: 'npm'
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Run verification
31+
run: npm run verify

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ A special thanks to a few contributors that helped me make `code-complexity` bet
108108
- Scott Brooks (scottamplitude) for initiating the work on complexity strategies
109109

110110
[michael-feathers-source]: https://www.stickyminds.com/article/getting-empirical-about-refactoring
111-
[travis-image]: https://img.shields.io/travis/simonrenoult/code-complexity/master.svg?style=flat-square
112-
[travis-url]: https://travis-ci.org/simonrenoult/code-complexity
111+
[ci-image]: https://github.com/simonrenoult/code-complexity/workflows/CI/badge.svg
112+
[ci-url]: https://github.com/simonrenoult/code-complexity/actions
113113
[style-image]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square
114114
[style-url]: https://prettier.io/
115115
[coverage-image]: https://img.shields.io/codecov/c/github/simonrenoult/code-complexity.svg?style=flat-square

0 commit comments

Comments
 (0)