Skip to content

Commit e151f9c

Browse files
authored
chore: use gh actions
1 parent cb320ee commit e151f9c

File tree

4 files changed

+28
-74
lines changed

4 files changed

+28
-74
lines changed

.circleci/config.yml

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

.github/workflows/semantic-release.yaml renamed to .github/workflows/main.yaml

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,55 @@
1-
name: Semantic Release
2-
on:
3-
push:
4-
branches:
5-
- 'main'
1+
name: Build
2+
on: [push]
3+
4+
env:
5+
CI_BUILD_NUM: ${{ github.run_id }}
6+
CI_BRANCH: ${{ github.ref_name }}
7+
CIRCLE_REPOSITORY_URL: dummy-url
68

79
jobs:
810
build:
11+
name: Test
912
runs-on: ubuntu-latest
10-
if: "!contains(github.event.head_commit.message, '[skip ci]')"
1113
steps:
1214
- uses: actions/checkout@v4
13-
- name: Use Node.js 14.x
14-
uses: actions/setup-node@v3
15+
- name: Use Node.js 18.x
16+
uses: actions/setup-node@v4
1517
with:
16-
node-version: '14.x'
18+
node-version: '18.x'
1719
- run: npm install
1820
- run: git config --global user.email "test@project-helix.io" && git config --global user.name "Test Build"
1921
- run: npm test
20-
env:
21-
CIRCLE_REPOSITORY_URL: dummy-url
22+
- uses: codecov/codecov-action@v4
23+
with:
24+
token: ${{ secrets.CODECOV_TOKEN }}
2225

2326
build_win:
27+
name: Test (Windows)
2428
runs-on: windows-latest
25-
if: "!contains(github.event.head_commit.message, '[skip ci]')"
2629
steps:
2730
- run: git config --global core.autocrlf false
2831
- uses: actions/checkout@v4
29-
- name: Use Node.js 14.x
30-
uses: actions/setup-node@v3
32+
- name: Use Node.js 18.x
33+
uses: actions/setup-node@v4
3134
with:
32-
node-version: '14.x'
35+
node-version: '18.x'
3336
- run: npm install
3437
- run: git config --global user.email "test@project-helix.io" && git config --global user.name "Test Build"
3538
- run: npm test
36-
env:
37-
CIRCLE_REPOSITORY_URL: dummy-url
3839

3940
release:
41+
name: Release
4042
runs-on: ubuntu-latest
43+
if: github.ref == 'refs/heads/main'
4144
needs: [build, build_win]
42-
if: "!contains(github.event.head_commit.message, '[skip ci]')"
4345
steps:
4446
- uses: actions/checkout@v4
4547
with:
4648
persist-credentials: false
47-
- name: Use Node.js 14.x
48-
uses: actions/setup-node@v3
49+
- name: Use Node.js 18.x
50+
uses: actions/setup-node@v4
4951
with:
50-
node-version: '14.x'
52+
node-version: '18.x'
5153
- run: npm install
5254
- run: npm run semantic-release
5355
env:

.github/workflows/semver-check.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
- name: Comment
1212
id: comment
13-
uses: adobe-rnd/github-semantic-release-comment-action@master
13+
uses: adobe-rnd/github-semantic-release-comment-action@main
1414
with:
15-
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1616

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# JSON Schema Markdown Tools
22

3-
[![CircleCI](https://circleci.com/gh/adobe/jsonschema2md.svg?style=svg)](https://circleci.com/gh/adobe/jsonschema2md)
3+
[![GitHub Actions](https://img.shields.io/github/actions/workflow/status/adobe/jsonschema2md/main.yaml)](https://github.com/adobe/jsonschema2md/actions/workflows/main.yaml)
44

55
Documenting and validating complex JSON Schemas can be hard. This tool makes it easier by providing a number of scripts that can turn JSON Schema files into readable Markdown documentation that is ready for consumption on GitHub or processed using Jekyll or other static site generators.
66

@@ -110,8 +110,8 @@ This will run our Jasmine test suite as well as lint the JavaScript according to
110110

111111
### CI
112112

113-
Continuous integration runs on [CircleCI](https://circleci.com/gh/adobe/jsonschema2md).
114-
All pull requests automatically trigger a job that runs the [tests](#tests) by executing the [`config.yml`](.circleci/config.yml).
113+
Continuous integration runs on Github Actions.
114+
All pull requests automatically trigger a job that runs the [tests](#tests) by executing the [`main.yml`](.github/workflows/main.yaml).
115115

116116
### Code Coverage
117117

0 commit comments

Comments
 (0)