Skip to content

Commit

Permalink
test: add github/workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ambar committed Dec 24, 2023
1 parent 2146dfe commit d9b95b0
Show file tree
Hide file tree
Showing 6 changed files with 2,316 additions and 2,140 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Test

on:
push:
branches: [main, dev]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
# https://github.com/pnpm/action-setup
- uses: pnpm/action-setup@v2
with:
version: 8
# https://github.com/actions/setup-node
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- run: pnpm install
- name: test
run: |
pnpm test -- --coverage
- name: report
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./coverage/lcov.info
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A dead simple, one-line template function.

[![build status](https://badgen.net/travis/ambar/olt)](https://travis-ci.org/ambar/olt)
[![Coverage Status](https://coveralls.io/repos/github/ambar/olt/badge.svg?branch=main)](https://coveralls.io/github/ambar/olt?branch=main)
[![npm version](https://badgen.net/npm/v/olt)](https://www.npmjs.com/package/olt)
[![minzipped size](https://badgen.net/bundlephobia/minzip/olt)](https://bundlephobia.com/result?p=olt)
![module](https://badgen.net/badge/module/esm,cjs?list=1)
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
"preset": "rollup-jest"
},
"devDependencies": {
"jest": "^28.1.0",
"jest": "^29.7.0",
"rollup": "^2.75.5",
"rollup-jest": "^3.0.0"
}
},
"packageManager": "pnpm@8.13.0+sha256.fbcf256db6d06bc189e31df34b3ed61220f3ba9f78a2ca8fe7be0fce4670dbd3"
}
Loading

0 comments on commit d9b95b0

Please sign in to comment.