Skip to content

Commit 8528e84

Browse files
committed
build: Replace Travis with GitHub CI
1 parent d1823fa commit 8528e84

File tree

4 files changed

+75
-25
lines changed

4 files changed

+75
-25
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: node_js CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- '**'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-20.04
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
- name: Setup Nodejs
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: 12
22+
23+
- name: Lint
24+
run: npm run lint
25+
26+
- name: Test
27+
run: npm run test
28+
29+
- name: Build
30+
run: npm run build
31+
32+
- name: Docs
33+
run: npm run docs
34+
35+
- name: Run Coverage
36+
uses: codecov/codecov-action@v2

.github/workflows/npm-publish.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release CI
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
7+
jobs:
8+
release:
9+
name: Release
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: 12
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Create Build
26+
run: npm run build
27+
28+
- name: Release Package
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
31+
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}
32+
run: npm semantic-release
33+
34+
- name: Deploy to GH pages
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
37+
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}
38+
run: npm deploy-storybook-ci

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://api.travis-ci.com/edx/frontend-platform.svg?branch=master)](https://travis-ci.com/edx/frontend-platform)
1+
[![Build Status](https://github.com/edx/frontend-platform/actions/workflows/ci.yml/badge.svg)](https://github.com/edx/frontend-platform/actions/workflows/ci.yml)
22
[![Codecov](https://img.shields.io/codecov/c/github/edx/frontend-platform)](https://codecov.io/gh/edx/frontend-platform)
33
[![NPM Version](https://img.shields.io/npm/v/@edx/frontend-platform.svg)](https://www.npmjs.com/package/@edx/frontend-platform)
44
[![npm_downloads](https://img.shields.io/npm/dt/@edx/frontend-platform.svg)](https://www.npmjs.com/package/@edx/frontend-platform)

0 commit comments

Comments
 (0)