Skip to content

Commit

Permalink
chore: use gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tripodsan authored Mar 25, 2024
1 parent cb320ee commit e151f9c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 74 deletions.
48 changes: 0 additions & 48 deletions .circleci/config.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,53 +1,55 @@
name: Semantic Release
on:
push:
branches:
- 'main'
name: Build
on: [push]

env:
CI_BUILD_NUM: ${{ github.run_id }}
CI_BRANCH: ${{ github.ref_name }}
CIRCLE_REPOSITORY_URL: dummy-url

jobs:
build:
name: Test
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v4
- name: Use Node.js 14.x
uses: actions/setup-node@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: '14.x'
node-version: '18.x'
- run: npm install
- run: git config --global user.email "test@project-helix.io" && git config --global user.name "Test Build"
- run: npm test
env:
CIRCLE_REPOSITORY_URL: dummy-url
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

build_win:
name: Test (Windows)
runs-on: windows-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v4
- name: Use Node.js 14.x
uses: actions/setup-node@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: '14.x'
node-version: '18.x'
- run: npm install
- run: git config --global user.email "test@project-helix.io" && git config --global user.name "Test Build"
- run: npm test
env:
CIRCLE_REPOSITORY_URL: dummy-url

release:
name: Release
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs: [build, build_win]
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js 14.x
uses: actions/setup-node@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: '14.x'
node-version: '18.x'
- run: npm install
- run: npm run semantic-release
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/semver-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- name: Comment
id: comment
uses: adobe-rnd/github-semantic-release-comment-action@master
uses: adobe-rnd/github-semantic-release-comment-action@main
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# JSON Schema Markdown Tools

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

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.

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

### CI

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

### Code Coverage

Expand Down

0 comments on commit e151f9c

Please sign in to comment.