From 323e02526f6ae35e7098c8c0d4634766ea3e4e10 Mon Sep 17 00:00:00 2001 From: Ivan Berezin Date: Thu, 23 May 2024 10:32:38 +0700 Subject: [PATCH] TILES-5081 add test to workflow --- .github/workflows/prettier-check.yml | 14 ++++++++++++++ .github/workflows/test.yml | 24 ++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/workflows/prettier-check.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/prettier-check.yml b/.github/workflows/prettier-check.yml new file mode 100644 index 0000000..3de1e54 --- /dev/null +++ b/.github/workflows/prettier-check.yml @@ -0,0 +1,14 @@ +name: Prettier check + +on: push + +jobs: + prettier-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - run: npm ci + - run: npm run prettier diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..6f8e8d5 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: Test deck2gisLayer plugin + +on: + push: + branches: + - '*' + tags-ignore: + - '*' + +jobs: + run-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - run: PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true npm ci + - run: npm run test:screenshots + - uses: actions/upload-artifact@v3 + if: ${{ failure() }} + with: + path: test/screenshots/__screenshots__/**/__diff_output__/*.png + retention-days: 5