Skip to content
This repository was archived by the owner on May 29, 2023. It is now read-only.

Commit 65fa4f6

Browse files
committed
ci: travis -> actions
1 parent a2d5c63 commit 65fa4f6

File tree

5 files changed

+35
-38
lines changed

5 files changed

+35
-38
lines changed

.github/workflows/ci.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Web APIs CI
2+
3+
on: push
4+
5+
jobs:
6+
ci:
7+
# Setup part
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Use Node.js
12+
uses: actions/setup-node@v1
13+
with:
14+
node-version: '12.x'
15+
- name: Cache Node.js modules
16+
uses: actions/cache@v2
17+
with:
18+
path: ~/.npm
19+
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
20+
restore-keys: |
21+
${{ runner.OS }}-node-
22+
${{ runner.OS }}-
23+
- name: Install dependencies
24+
run: npm ci
25+
# End of setup
26+
- run: |
27+
npm run build
28+
npm run test
29+
npm run lint
30+
- name: Coveralls
31+
uses: coverallsapp/github-action@master
32+
with:
33+
github-token: ${{ secrets.GITHUB_TOKEN }}
34+
path-to-lcov: ./coverage/geolocation/lcov.info

.travis.yml

-20
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
[![npm version](https://img.shields.io/npm/v/@ng-web-apis/geolocation.svg)](https://npmjs.com/package/@ng-web-apis/geolocation)
66
![npm bundle size](https://img.shields.io/bundlephobia/minzip/@ng-web-apis/geolocation)
7-
[![Travis (.com)](https://img.shields.io/travis/com/ng-web-apis/geolocation)](https://travis-ci.com/ng-web-apis/geolocation)
7+
[![.github/workflows/ci.yml](https://github.com/ng-web-apis/geolocation/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/ng-web-apis/geolocation/actions/workflows/ci.yml)
88
[![Coveralls github](https://img.shields.io/coveralls/github/ng-web-apis/geolocation)](https://coveralls.io/github/ng-web-apis/geolocation?branch=master)
99
[![angular-open-source-starter](https://img.shields.io/badge/made%20with-angular--open--source--starter-d81676?logo=angular)](https://github.com/TinkoffCreditSystems/angular-open-source-starter)
1010

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"compile:server": "tsc -p ./projects/demo/tsconfig.ssr.json",
1919
"generate:prerender": "node dist/demo/ssr/prerender",
2020
"test": "ng test",
21-
"posttest": "node scripts/coveralls.js",
2221
"postadd": "git add ./projects",
2322
"lint": "ng lint",
2423
"typecheck": "tsc --noEmit --skipLibCheck",

scripts/coveralls.js

-16
This file was deleted.

0 commit comments

Comments
 (0)