Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test github actions #17

Merged
merged 24 commits into from
Sep 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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:
version: 10.x

- name: Install
run: npm ci

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

- name: Test and report
env:
CC_TEST_REPORTER_ID: 5286fe366f9880c571dcdfe0d7748a6343eb7eb0788250626df792cd3120ab87
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_TOKEN: ${{ secrets.SAUCE_ACCESS_TOKEN }}
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 $?
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion cosmoz-treenode.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ class CosmozTreenode extends ComputingLitElement {
}

_computePathText(pathToRender, valueProperty, pathSeparator) {

if (!pathToRender) {
return '';
}
Expand Down
9 changes: 9 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "4.0.1",
"description": "[![Build Status](https://travis-ci.org/Neovici/cosmoz-treenode.svg?branch=master)](https://travis-ci.org/Neovici/cosmoz-treenode)",
"keywords": [
"polymer",
"lit-element",
"web-components"
],
"homepage": "https://github.com/neovici/cosmoz-treenode#readme",
Expand All @@ -15,13 +15,12 @@
"url": "git+https://github.com/neovici/cosmoz-treenode.git"
},
"license": "Apache-2.0",
"author": "",
"author": "Neovici dev",
"main": "cosmoz-treenode.js",
"directories": {
"test": "test"
},
"scripts": {
"analyze": "polymer analyze --input cosmoz-*.js > analysis.json",
"lint": "eslint --cache --ext .js .",
"preversion": "npm run lint && npm run test -- --skip-plugin sauce",
"postversion": "git push && git push --tags",
Expand All @@ -34,6 +33,7 @@
},
"devDependencies": {
"@neovici/eslint-config": "github:neovici/eslint-config#semver:^1.0.0",
"@neovici/github-actions-eslint-annotator": "^0.1.2",
"@polymer/iron-component-page": "^4.0.0",
"@polymer/iron-demo-helpers": "^3.0.0",
"@polymer/iron-test-helpers": "^3.0.0",
Expand Down