Skip to content

Commit 21cc4e5

Browse files
authored
Merge pull request #12 from socotecio/changeCiSystem
change ci system
2 parents d13fc70 + 4fca082 commit 21cc4e5

File tree

2 files changed

+48
-33
lines changed

2 files changed

+48
-33
lines changed

.circleci/config.yml

-33
This file was deleted.

.github/workflows/ci.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main, next ]
6+
pull_request:
7+
branches: [ main, next ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '20.11.1'
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Run unit tests
25+
run: npm run test:unit
26+
27+
release:
28+
# This job will only run on pushes to main or next, and after the test job completes successfully.
29+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next'
30+
runs-on: ubuntu-latest
31+
needs: test
32+
steps:
33+
- name: Checkout repository
34+
uses: actions/checkout@v3
35+
36+
- name: Set up Node.js
37+
uses: actions/setup-node@v3
38+
with:
39+
node-version: '20.11.1'
40+
41+
- name: Install dependencies
42+
run: npm install
43+
44+
- name: Build project
45+
run: npm run build
46+
47+
- name: Semantic release
48+
run: npx semantic-release

0 commit comments

Comments
 (0)