Skip to content

Commit

Permalink
build(ci): add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Feb 24, 2021
1 parent 36ad028 commit 06e1310
Show file tree
Hide file tree
Showing 7 changed files with 106 additions and 18 deletions.
16 changes: 0 additions & 16 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: 🐛 Bug report
about: If something isn't working as expected 🤔.
title: ''
labels: 'bug'
assignees: ''
---

<!--A clear and concise description of what the bug is.-->

When I...

**To Reproduce**

<!--Steps to reproduce the behavior:
-->

1.

**Expected behavior**

<!--A clear and concise description of what you expected to happen.-->

**Screenshots**

<!--If applicable, add screenshots to help explain your problem.-->

**Context**

- Version:
- Browser:

**Additional context**

<!--Add any other context about the problem here.-->
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: 🤗 Question, Discussions
url: https://github.com/lineupjs/lineupjs/discussions
about: Ask question about the library (usage, features,...)
# - name: Samuel Gratzl
# url: https://www.sgratzl.com
# about: Please ask and answer questions here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: 🚀 Feature Request
about: Suggest an idea for this project
title: ''
labels: 'enhancement'
assignees: ''
---

<!--A clear and concise description of what feature you are missing.-->

It would be great if ...

**User story**

<!--Describe your problem, feature you are missing, and how you image to look like.-->

**Additional context**

<!--Add any other context or screenshots about the feature request here.-->
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
closes <list issues here>
closes <!--list issues here-->

**prerequisites**:
* [ ] branch is up-to-date with the branch to be merged with, i.e. develop
* [ ] build is successful
* [ ] code is cleaned up and formatted


### Summary
## Summary

12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
# Maintain dependencies for npm
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: ci

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
node-version: '12.x'
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm run build
- run: npm run lint
- run: npm test:coverage
- run: yarn docs
# - name: Deploy
# if: github.ref == 'refs/heads/master' && github.event_name == 'push'
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./docs
# enable_jekyll: false

0 comments on commit 06e1310

Please sign in to comment.