Skip to content

Commit

Permalink
fix: switch to GitHub actions (#38)
Browse files Browse the repository at this point in the history
* switch to GitHub actions

* upgrade browsers
  • Loading branch information
dlockhart authored Nov 23, 2020
1 parent 156e88a commit 52d4123
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 43 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: CI
on: pull_request
jobs:
test:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: Brightspace/third-party-actions@actions/checkout
- uses: Brightspace/third-party-actions@actions/setup-node
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint
- name: Unit Tests (SauceLabs)
run: npm run test:sauce
env:
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY_DESIRE2LEARN }}
SAUCE_USERNAME: Desire2Learn
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release
on:
push:
branches:
- master
jobs:
release:
if: "!contains(github.event.head_commit.message, 'skip ci')"
name: Release
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: Brightspace/third-party-actions@actions/checkout
with:
persist-credentials: false
- name: Setup Node
uses: Brightspace/third-party-actions@actions/setup-node
- name: Install dependencies
run: npm install
- name: Unit Tests (Headless)
run: npm run test:travis
- name: Semantic Release
uses: BrightspaceUI/actions/semantic-release@master
with:
GITHUB_TOKEN: ${{ secrets.D2L_GITHUB_TOKEN }}
NPM: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# d2l-labs-carded-table

[![NPM version](https://img.shields.io/npm/v/@brightspace-ui-labs/carded-table.svg)](https://www.npmjs.org/package/@brightspace-ui-labs/carded-table)
[![Dependabot badge](https://flat.badgen.net/dependabot/BrightspaceUILabs/carded-table?icon=dependabot)](https://app.dependabot.com/)
[![Build status](https://travis-ci.org/BrightspaceUILabs/carded-table.svg?branch=master)](https://travis-ci.com/BrightspaceUILabs/carded-table)
![Build status](https://github.com/BrightspaceUILabs/carded-table/workflows/CI/badge.svg)

> Note: this is a ["labs" component](https://github.com/BrightspaceUI/guide/wiki/Component-Tiers). While functional, these tasks are prerequisites to promotion to BrightspaceUI "official" status:
>
Expand Down Expand Up @@ -152,4 +151,8 @@ npm test

All version changes should obey [semantic versioning](https://semver.org/) rules.

Include either `[increment major]`, `[increment minor]` or `[increment patch]` in your merge commit message to automatically increment the `package.json` version, create a tag, and trigger a deployment to NPM.
Releases use the [semantic-release](https://semantic-release.gitbook.io/) tooling and the [angular preset](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular) for commit message syntax. Upon release, the version in `package.json` is updated, a tag and GitHub release is created and a new package will be deployed to NPM.

Commits prefixed with `feat` will trigger a minor release, while `fix` or `perf` will trigger a patch release. A commit containing `BREAKING CHANGE` will cause a major release to occur.

Other useful prefixes that will not trigger a release: `build`, `ci`, `docs`, `refactor`, `style` and `test`. More details in the [Angular Contribution Guidelines](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#type).
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@polymer/test-fixture": "^4",
"@webcomponents/webcomponentsjs": "^2",
"axe-core": "^4",
"babel-eslint": "^10",
"chai": "^4",
Expand All @@ -32,7 +33,6 @@
"eslint-plugin-html": "^6",
"eslint-plugin-lit": "^1",
"eslint-plugin-sort-class-members": "^1",
"frau-ci": "^1",
"mocha": "^7.0.1",
"polymer-cli": "^1",
"puppeteer": "^5.3.1",
Expand All @@ -41,7 +41,6 @@
},
"dependencies": {
"@brightspace-ui/core": "^1",
"@webcomponents/webcomponentsjs": "^2",
"lit-element": "^2"
}
}
6 changes: 3 additions & 3 deletions wct.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
"browsers": [
{
"browserName": "chrome",
"platform": "OS X 10.13",
"platform": "OS X 10.15",
"version": ""
},
{
"browserName": "safari",
"platform": "OS X 10.13",
"platform": "OS X 10.15",
"version": ""
},
{
"browserName": "firefox",
"platform": "OS X 10.13",
"platform": "OS X 10.15",
"version": ""
},
{
Expand Down

0 comments on commit 52d4123

Please sign in to comment.