43 lines
978 B
YAML
43 lines
978 B
YAML
name: Test action
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
|
|
jobs:
|
|
test:
|
|
name: Test on ${{ matrix.image }}
|
|
runs-on: stackit-docker
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
image:
|
|
- registry.onstackit.cloud/devex-images/ubuntu:act-latest
|
|
- registry.onstackit.cloud/devex-images/alpine:latest
|
|
container:
|
|
image: ${{ matrix.image }}
|
|
steps:
|
|
- name: Install Node (Alpine only)
|
|
shell: sh
|
|
run: |
|
|
set -e
|
|
|
|
if ! command -v node >/dev/null 2>&1; then
|
|
if command -v apk >/dev/null 2>&1; then
|
|
apk add --no-cache nodejs
|
|
else
|
|
echo "::error::Node.js cannot be installed for this environment."
|
|
exit 1
|
|
fi
|
|
fi
|
|
- uses: actions/checkout@v6
|
|
- name: Test action
|
|
uses: ./
|
|
with:
|
|
version: "v0.61.0"
|