Skip to content

Commit

Permalink
chore: clean up file structure, add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
markusberg-sectra committed Feb 15, 2024
1 parent e2106c7 commit a40c870
Show file tree
Hide file tree
Showing 8 changed files with 896 additions and 226 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Node.js 18.x, 20.x build

on:
push:
branches: [master, feat/v2.0]

jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: testbuilds
cancel-in-progress: false

strategy:
matrix:
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test

- name: Update Coverage Badge
uses: we-cli/coverage-badge-action@main
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ltpa

[![travis build](https://img.shields.io/travis/markusberg/ltpa.svg)](https://travis-ci.org/markusberg/ltpa)
[![codecov coverage](https://img.shields.io/codecov/c/github/markusberg/ltpa/master.svg)](https://codecov.io/github/markusberg/ltpa)
[![node.js build](https://github.com/markusberg/ltpa/actions/workflows/master.yaml/badge.svg)](https://github.com/markusberg/ltpa/actions/workflows/master.yaml)
[![coverage](https://markusberg.github.io/ltpa/badges/coverage.svg)](https://github.com/markusberg/ltpa/actions)
[![version](https://img.shields.io/npm/v/ltpa.svg)](https://codecov.io/github/markusberg/ltpa)
[![license](https://img.shields.io/github/license/markusberg/ltpa.svg)](https://www.apache.org/licenses/LICENSE-2.0)

Expand Down
Loading

0 comments on commit a40c870

Please sign in to comment.