Skip to content

Commit

Permalink
feat: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
npwork committed Dec 19, 2021
1 parent f193cb4 commit ec02819
Show file tree
Hide file tree
Showing 7 changed files with 4,664 additions and 4,920 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/node.js.yml

This file was deleted.

9 changes: 9 additions & 0 deletions .github/workflows/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

set -ex

npm i --silent -g pnpm@6 --unsafe-perm

pnpm i --no-prefer-frozen-lockfile

pnpm run setup
49 changes: 49 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 12.x, 14.x, 16.x ]
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.0.1
with:
version: 6.20.3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install

test:
timeout-minutes: 7
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Cache .pnpm-store # From https://pnpm.io/continuous-integration
uses: actions/cache@v1
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }}

- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- run: pnpm test
working-directory: ./
41 changes: 0 additions & 41 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 @@ -16,7 +16,7 @@

| Statements | Branches | Functions | Lines |
| --------------------------- | ----------------------- | ------------------------- | -------------------- |
| ![Statements](https://img.shields.io/badge/statements-96.15%25-brightgreen.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-88.54%25-yellow.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-94.22%25-brightgreen.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-97.59%25-brightgreen.svg?style=flat) |
| ![Statements](https://img.shields.io/badge/statements-96.14%25-brightgreen.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-88.54%25-yellow.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-94.21%25-brightgreen.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-97.58%25-brightgreen.svg?style=flat) |



Expand Down
Loading

0 comments on commit ec02819

Please sign in to comment.