Skip to content

Commit 3332d97

Browse files
committed
Refactor: Switched from TravisCI to Github Actions
1 parent 014a096 commit 3332d97

File tree

4 files changed

+32
-30
lines changed

4 files changed

+32
-30
lines changed

.github/workflows/ci-test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI tests
2+
run-name: Running automated tests
3+
on: [push, workflow_dispatch]
4+
jobs:
5+
Running-automated-tests:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
9+
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
10+
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
11+
12+
- name: Checking out repository code...
13+
uses: actions/checkout@v4
14+
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
15+
16+
- run: echo "Installing dependencies..."
17+
- run: |
18+
npm config set progress=false &&\
19+
npm install --force
20+
21+
- run: echo "Running tests..."
22+
- run: npm run ci:test
23+
24+
# Could also use dedicated codecov action: https://github.com/codecov/codecov-action
25+
- run: echo "Reporting coverage to codecov..."
26+
- run: npm run ci:reportCoverage
27+
env:
28+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
29+
30+
- run: echo "🍏 This job's status is ${{ job.status }}."

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ngx-dynamic-hooks
22

3-
[![Travis CI](https://img.shields.io/travis/com/MTobisch/ngx-dynamic-hooks?style=flat-square)](https://travis-ci.com/github/MTobisch/ngx-dynamic-hooks)
3+
[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/MTobisch/ngx-dynamic-hooks/ci-test.yml?style=flat-square&logo=github&label=CI%20tests)](https://github.com/MTobisch/ngx-dynamic-hooks/actions/workflows/ci-test.yml)
44
[![Coverage](https://img.shields.io/codecov/c/gh/MTobisch/ngx-dynamic-hooks?style=flat-square)](https://codecov.io/gh/MTobisch/ngx-dynamic-hooks)
55
[![NPM](https://img.shields.io/npm/v/ngx-dynamic-hooks?color=orange&style=flat-square)](https://www.npmjs.com/package/ngx-dynamic-hooks)
66
[![License](https://img.shields.io/github/license/mtobisch/ngx-dynamic-hooks?color=blue&style=flat-square)](https://github.com/MTobisch/ngx-dynamic-hooks/blob/master/LICENSE.md)

projects/ngx-dynamic-hooks/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ngx-dynamic-hooks
22

3-
[![Travis CI](https://img.shields.io/travis/com/MTobisch/ngx-dynamic-hooks?style=flat-square)](https://travis-ci.com/github/MTobisch/ngx-dynamic-hooks)
3+
[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/MTobisch/ngx-dynamic-hooks/ci-test.yml?style=flat-square&logo=github&label=CI%20tests)](https://github.com/MTobisch/ngx-dynamic-hooks/actions/workflows/ci-test.yml)
44
[![Coverage](https://img.shields.io/codecov/c/gh/MTobisch/ngx-dynamic-hooks?style=flat-square)](https://codecov.io/gh/MTobisch/ngx-dynamic-hooks)
55
[![NPM](https://img.shields.io/npm/v/ngx-dynamic-hooks?color=orange&style=flat-square)](https://www.npmjs.com/package/ngx-dynamic-hooks)
66
[![License](https://img.shields.io/github/license/mtobisch/ngx-dynamic-hooks?color=blue&style=flat-square)](https://github.com/MTobisch/ngx-dynamic-hooks/blob/master/LICENSE.md)

0 commit comments

Comments
 (0)