Skip to content

Commit

Permalink
fix(ci): adopt semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
cristinecula authored and nomego committed Oct 9, 2019
1 parent 7ae4b11 commit f7ff5f3
Show file tree
Hide file tree
Showing 9 changed files with 26,140 additions and 9,404 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/workflow.yml
@@ -0,0 +1,53 @@
---
name: Github CI
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master

- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x

- name: Install
run: npm ci

- name: Lint commit messages
run: npx commitlint --from origin/master --to HEAD

- name: ESLint
run: npx github-actions-eslint-annotator
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Test and report
env:
CC_TEST_REPORTER_ID: ee7700d6670416f453c04be8c8ea32b756b7309ce33bf965402136f5d4fb91bc
GIT_BRANCH: ${{ github.ref }}
GIT_COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
NEO_CC_URL: https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
NEO_CC: ./cc-test-reporter
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
run: |
([[ -e $NEO_CC ]] || curl -L $NEO_CC_URL > $NEO_CC) && chmod +x $NEO_CC
$NEO_CC before-build
npm run test $([ -z "$SAUCE_ACCESS_KEY"] && echo "-- --skip-plugin sauce")
$NEO_CC after-build --exit-code $?
- name: Semantic release
run: npx semantic-release
if: success()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
@@ -1,8 +1,9 @@
cosmoz-dialog
=============

[![Build Status](https://travis-ci.org/Neovici/cosmoz-dialog.svg?branch=master)](https://travis-ci.org/Neovici/cosmoz-dialog)
[![Build Status](https://github.com/Neovici/cosmoz-dialog/workflows/Github%20CI/badge.svg)](https://github.com/Neovici/cosmoz-dialog/actions?workflow=Github+CI)
[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/Neovici/cosmoz-dialog)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

cosmoz-dialog is a Polymer component workaround for paper-dialog that fit the
backdrop to the element specified by the `fitInto` property.
Expand Down
5 changes: 3 additions & 2 deletions cosmoz-dialog-mixin.js
Expand Up @@ -59,8 +59,8 @@ export const dialogOpener = dedupingMixin(base => // eslint-disable-line max-lin

static get hostAttributes() {
return {
'role': 'dialog',
'tabindex': '-1'
role: 'dialog',
tabindex: '-1'
};
}

Expand Down Expand Up @@ -174,6 +174,7 @@ export const dialogOpener = dedupingMixin(base => // eslint-disable-line max-lin
.pop();

if (!template) {
// eslint-disable-next-line no-console
console.warn('cosmoz-dialog-behavior requires a template');
this._spawnSteps.splice(0);
}
Expand Down

0 comments on commit f7ff5f3

Please sign in to comment.