From 8e444a534262e8fe913e4b8f35a0e05df220786f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Vasconcellos?= Date: Wed, 31 Jul 2024 05:16:34 -0300 Subject: [PATCH] Add GH workflow to test project --- .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..b6fedf1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,48 @@ +name: Test +on: + push: + paths-ignore: + - '**/README.md' + - '**/LICENSE.md' + - '**/.*' + - docs/** + branches: + - main + pull_request: + paths-ignore: + - '**/README.md' + - '**/LICENSE.md' + - '**/.*' + - docs/** + +# Cancel previous runs of the same workflow on the same branch. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + name: Test archive-wasm + runs-on: ubuntu-latest + defaults: + run: + shell: bash + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + install: true + platforms: linux/amd64 + driver-opts: | + image=moby/buildkit:master + network=host + + - name: Build and test archive-wasm + run: | + set -euxo pipefail + + npm i + npm run buildtest