From 9f15b9300d77b1a9201461f5392825b8c6929f6f Mon Sep 17 00:00:00 2001 From: Afonso Jorge Ramos Date: Tue, 2 Jul 2024 04:19:42 +0100 Subject: [PATCH] feat: migrate test pipelines to gh (#339) Co-authored-by: Konrad Jamrozik --- .github/workflows/ci.yml | 48 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..da5c602 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,48 @@ +name: ci + +on: + push: + branches: [main] + pull_request: + +jobs: + ci: + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: ubuntu-latest + target-folder: drop-linux + - os: windows-latest + target-folder: drop + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-node@v2 + with: + node-version: "20" + + - name: npm ci + run: npm ci + + - name: lint + run: npm run lint + + - name: prettier + run: npm run prettier + + - name: test + run: npm test + + - name: pack + run: npm pack + + - name: Copy Files to target-folder + run: mkdir -p ${{ matrix.target-folder }} && cp *.tgz ${{ matrix.target-folder }} + + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: ${{ matrix.target-folder }} + path: ${{ matrix.target-folder }}