Skip to content

Commit 1941e8c

Browse files
committed
Switch to main branch and GitHub Actions
1 parent 20fe205 commit 1941e8c

File tree

8 files changed

+71
-97
lines changed

8 files changed

+71
-97
lines changed

.github/workflows/checks.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Checks
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
lint:
13+
name: Linting
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Check out repository
17+
uses: actions/checkout@v2
18+
19+
- name: Setup node
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: 12
23+
24+
- name: Install dependencies
25+
run: yarn install --frozen-lockfile
26+
27+
- name: Lint with markdownlint
28+
run: yarn lint:markdownlint
29+
30+
- name: Lint with prettier
31+
run: yarn lint:prettier
32+
33+
- name: Lint with tsc
34+
run: yarn lint:tsc
35+
36+
- name: Lint with yarn-deduplicate
37+
run: yarn lint:yarn-deduplicate
38+
39+
unit-tests:
40+
name: Unit tests
41+
runs-on: ${{ matrix.os }}
42+
strategy:
43+
matrix:
44+
os: [macos-latest, ubuntu-latest, windows-latest]
45+
node: [10, 12, 14]
46+
exclude:
47+
- os: macos-latest
48+
node: 10
49+
- os: macos-latest
50+
node: 14
51+
- os: windows-latest
52+
node: 10
53+
- os: windows-latest
54+
node: 14
55+
steps:
56+
- name: Check out repository
57+
uses: actions/checkout@v2
58+
59+
- name: Setup node
60+
uses: actions/setup-node@v1
61+
with:
62+
node-version: ${{ matrix.node }}
63+
64+
- name: Install dependencies
65+
run: yarn install --frozen-lockfile
66+
67+
- name: Run unit tests
68+
run: yarn test

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# AWS IoT Button logger to git
22

33
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
4-
[![Azure Pipelines status](https://img.shields.io/azure-devops/build/kachkaev/github-pipelines/1/master.svg)](https://dev.azure.com/kachkaev/github-pipelines/_build?definitionId=1)
5-
[![Azure Pipelines coverage](https://img.shields.io/azure-devops/coverage/kachkaev/github-pipelines/1/master.svg)](https://dev.azure.com/kachkaev/github-pipelines/_build?definitionId=1)
4+
[![GitHub Workflow Status (checks)](https://img.shields.io/github/workflow/status/kachkaev/aws-iot-button-logger-to-git/Checks?label=checks)](https://github.com/kachkaev/aws-iot-button-logger-to-git/actions?query=workflow%3AChecks)
65
[![Known vulnerabilities](https://img.shields.io/snyk/vulnerabilities/github/kachkaev/aws-iot-button-logger-to-git.svg)](https://snyk.io/test/github/kachkaev/aws-iot-button-logger-to-git?targetFile=package.json)
76
[![Code style: Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io/)
87

@@ -118,7 +117,7 @@ See [src/config.ts](src/config.ts) for the list of options.
118117
## ≥ 2.3
119118
120119
node --version
121-
## ≥ v10.18.0
120+
## ≥ v10.21.0
122121
123122
yarn --version
124123
## ≥ 1.21.1
@@ -180,4 +179,4 @@ GIT_REPO_URI=https://username:[email protected]/example/my-data.git \
180179
yarn test
181180
```
182181

183-
The repository is [continuously checked via Azure Pipelines](https://dev.azure.com/kachkaev/github-pipelines/_build?definitionId=1).
182+
The repository is [continuously checked via GitHub Actions](https://github.com/kachkaev/aws-iot-button-logger-to-git/actions).

azure-pipelines/index.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

azure-pipelines/jobs/linting.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

azure-pipelines/jobs/unit-tests.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

azure-pipelines/steps/install-dependencies.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

azure-pipelines/steps/prepare-environment.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

azure-pipelines/steps/report-test-results-and-coverage.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)