Skip to content

Commit

Permalink
Merge pull request #14 from karelkryda/dev
Browse files Browse the repository at this point in the history
Version 2.0.3
  • Loading branch information
karelkryda authored Apr 3, 2022
2 parents 469ef22 + 9d009e4 commit 7673b77
Show file tree
Hide file tree
Showing 17 changed files with 8,159 additions and 7,968 deletions.
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Bug report
about: Create a report to help me improve
title: "[BUG] "
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS, Windows]
- Node.js version: [e.g. 12, 16]
- Universal Speedtest version: [e.g. 2.0.0, 2.0.2]
- Speed test using: [e.g. speedtest.net, speed.cloudflare.com]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[FEATURE] "
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/new-page-for-speed-testing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: New page for speed testing
about: Suggest another page for measuring internet speed
title: "[NEW PAGE] "
labels: enhancement
assignees: ''

---

**Web URL**
A link to a website where you can test the speed of your internet (for example speedtest.net)

**Why would you like to add this page?**
Describe why you would like to add this site to measure internet speed.

**Additional context**
Add any other context or screenshots about the feature request here.
44 changes: 44 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CD - Publish to npm

on:
push:
branches: [ master ]

jobs:
build:
name: Publish Build
runs-on: ubuntu-latest

steps:
- name: Checkout 🛎️
uses: actions/checkout@v2

- name: Setup Node.js 16
uses: actions/setup-node@v1
with:
node-version: 16

- name: Use CI Cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node16-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node16-
- name: Install 🔧
run: npm install

- name: Build 🏗️
run: npm run build

- name: Publish 📡
id: publish
if: github.event_name == 'pull_request' && github.ref == 'refs/heads/master'
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}

- if: steps.publish.outputs.type != 'none'
run: |
echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI - Lint + Tests + Build

on:
push:
branches: [ dev ]

pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout 🛎️
uses: actions/checkout@v2

- name: Setup NodeJS 16
uses: actions/setup-node@v1
with:
node-version: 16

- name: Install 🔧
run: npm install

- name: Lint 🧐
run: npm run lint

- name: Test 🚨
run: npm test

- name: Build 🏗️
run: npm run build
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
Loading

0 comments on commit 7673b77

Please sign in to comment.