From da6d487a8e732c902c22f900b40e7d4211014506 Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Wed, 22 Jun 2022 17:35:01 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20wo?= =?UTF-8?q?rkflows=20=D0=B4=D0=BB=D1=8F=20github=20actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100755 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100755 index 0000000..4ea1e4c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,42 @@ +name: CryptoPRO tests + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + + +jobs: + buildAndTest: + runs-on: ubuntu-20.04 + + strategy: + matrix: + node-version: [ lts/*, latest ] + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - name: Clean install, build, test + run: | + npm ci + npm run build --if-present + npm test + + lint: + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js latest + uses: actions/setup-node@v3 + with: + node-version: latest + - name: Clean install, lint + run: | + npm ci + npm run lint