diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..21a541e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: [push, pull_request] + +jobs: + build: + + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + node: [8.x, 10.x, 12.x, 13.x] + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + - name: Install pcsclite + run: sudo apt-get install -y libpcsclite1 libpcsclite-dev pcscd + if: matrix.os == 'ubuntu-latest' + - name: Compile + run: npm install --verbose diff --git a/README.md b/README.md index c646f16..e37fc7d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # node-pcsclite [![npm](https://img.shields.io/npm/v/@pokusew/pcsclite.svg)](https://www.npmjs.com/package/@pokusew/pcsclite) +[![build status](https://img.shields.io/github/workflow/status/pokusew/node-pcsclite/CI?logo=github)](https://github.com/pokusew/node-pcsclite/actions?query=workflow%3ACI) [![node-pcsclite channel on discord](https://img.shields.io/badge/discord-join%20chat-61dafb.svg)](https://discord.gg/bg3yazg) Bindings over pcsclite to access Smart Cards. It works in **Linux**, **macOS** and **Windows**.