Skip to content

Merge pull request #5 from spacedriveapp/update-deps #13

Merge pull request #5 from spacedriveapp/update-deps

Merge pull request #5 from spacedriveapp/update-deps #13

Workflow file for this run

name: Test
on:
push:
paths-ignore:
- '**/README.md'
- '**/LICENSE.md'
- '**/.*'
- docs/**
branches:
- main
pull_request:
# 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: Install test dependencies
run: |
set -euxo pipefail
sudo apt-get update
sudo apt-get install -y \
zip \
xz-utils \
lz4 \
gzip \
lzop \
zstd \
bzip2 \
libarchive-tools \
xorriso \
pax
curl -L "https://www.rarlab.com/rar/rarlinux-x64-701.tar.gz" \
| tar -xzf- -C "${HOME}"
sudo mv "${HOME}/rar"/{rar,unrar} /usr/bin
sudo mv "${HOME}/rar/default.sfx" /usr/lib/default.sfx
curl -L "https://www.7-zip.org/a/7z2407-linux-x64.tar.xz" \
| tar -xJf- -C "$HOME"
sudo mv "$HOME"/{7zz,7zzs} /usr/bin
- name: Build and test archive-wasm
run: |
set -euxo pipefail
npm i
npm run buildtest