Skip to content

Commit

Permalink
Switch to main branch and GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kachkaev committed Jul 18, 2020
1 parent 20fe205 commit 1941e8c
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 97 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Checks

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2

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

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Lint with markdownlint
run: yarn lint:markdownlint

- name: Lint with prettier
run: yarn lint:prettier

- name: Lint with tsc
run: yarn lint:tsc

- name: Lint with yarn-deduplicate
run: yarn lint:yarn-deduplicate

unit-tests:
name: Unit tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
node: [10, 12, 14]
exclude:
- os: macos-latest
node: 10
- os: macos-latest
node: 14
- os: windows-latest
node: 10
- os: windows-latest
node: 14
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Run unit tests
run: yarn test
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# AWS IoT Button logger to git

[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
[![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)
[![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)
[![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)
[![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)
[![Code style: Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io/)

Expand Down Expand Up @@ -118,7 +117,7 @@ See [src/config.ts](src/config.ts) for the list of options.
## ≥ 2.3
node --version
## ≥ v10.18.0
## ≥ v10.21.0
yarn --version
## ≥ 1.21.1
Expand Down Expand Up @@ -180,4 +179,4 @@ GIT_REPO_URI=https://username:[email protected]/example/my-data.git \
yarn test
```

The repository is [continuously checked via Azure Pipelines](https://dev.azure.com/kachkaev/github-pipelines/_build?definitionId=1).
The repository is [continuously checked via GitHub Actions](https://github.com/kachkaev/aws-iot-button-logger-to-git/actions).
52 changes: 0 additions & 52 deletions azure-pipelines/index.yml

This file was deleted.

5 changes: 0 additions & 5 deletions azure-pipelines/jobs/linting.yml

This file was deleted.

6 changes: 0 additions & 6 deletions azure-pipelines/jobs/unit-tests.yml

This file was deleted.

3 changes: 0 additions & 3 deletions azure-pipelines/steps/install-dependencies.yml

This file was deleted.

7 changes: 0 additions & 7 deletions azure-pipelines/steps/prepare-environment.yml

This file was deleted.

20 changes: 0 additions & 20 deletions azure-pipelines/steps/report-test-results-and-coverage.yml

This file was deleted.

0 comments on commit 1941e8c

Please sign in to comment.