Skip to content

Commit

Permalink
feat: added CI
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniomuso authored and simonecorsi committed Oct 27, 2021
1 parent cb47690 commit 9354666
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/dependabot.yml
@@ -0,0 +1,18 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/' # Location of package manifests
schedule:
interval: 'daily'
open-pull-requests-limit: 10

- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'daily'
open-pull-requests-limit: 10
21 changes: 21 additions & 0 deletions .github/workflows/merge.yml
@@ -0,0 +1,21 @@
name: Run tests

on: [pull_request]

jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [12.x, 14.x, 16.x]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: bahmutov/npm-install@v1
- run: npm t
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,44 @@
name: Release

on:
push:
branches:
- main

jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [12.x, 14.x, 16.x]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: bahmutov/npm-install@v1
- run: npm t

release:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
with:
node-version: 16
- uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}

- uses: bahmutov/npm-install@v1
- run: npm run build

# - name: Semantic release
# uses: codfish/semantic-release-action@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.npm_token }}

0 comments on commit 9354666

Please sign in to comment.