diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..5dfcde1 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,13 @@ +on: [push] +jobs: + lint: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + - name: Install semistandard + run: npm i -g semistandard + - name: Run semistandard + run: semistandard diff --git a/README.md b/README.md index 6d2f0e5..7abec59 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Random Binary Music [![Sonarcloud Status](https://sonarcloud.io/api/project_badges/measure?project=berkerol_random-binary-music&metric=alert_status)](https://sonarcloud.io/dashboard?id=berkerol_random-binary-music) +[![CI](https://github.com/berkerol/random-binary-music/actions/workflows/lint.yml/badge.svg?branch=master)](https://github.com/berkerol/random-binary-music/actions/workflows/lint.yml) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg)](https://github.com/berkerol/random-binary-music/issues) [![semistandard](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg)](https://github.com/Flet/semistandard) [![ECMAScript](https://img.shields.io/badge/ECMAScript-latest-brightgreen.svg)](https://www.ecma-international.org/ecma-262) @@ -10,6 +11,10 @@ Listen to the music of random binary numbers. You can customize notes, periods a [![button](watch.png)](https://berkerol.github.io/random-binary-music/rbm.html) +## Continous Integration + +It is setup using GitHub Actions in `.github/workflows/lint.yml` + ## Contribution Feel free to [contribute](https://github.com/berkerol/random-binary-music/issues) according to the [semistandard rules](https://github.com/Flet/semistandard) and [latest ECMAScript Specification](https://www.ecma-international.org/ecma-262).