chore(npm): bump server deps #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow builds a xar archive, deploys it into exist and execute a simple smoke test. | |
# It also includes code for using semantic-release to upload packages as part of GitHub releases | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
# For node free automated release see https://trstringer.com/github-actions-create-release-upload-artifacts/ | |
name: exist-db CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
# 7.0.0-SNAPSHOT and 6.2.0 created | |
exist-version: [5.2.0, latest, release] | |
node-version: [18, 20] | |
steps: | |
# Checkout code | |
- uses: actions/checkout@v4 | |
# Build | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
# Install | |
- run: npm ci | |
# Test | |
- name: Build default images for testing on CI | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: ./test/Dockerfile | |
build-args: EXIST_VER=${{ matrix.exist-version }} | |
load: true | |
tags: exist-vs | |
- name: Start exist-ci containers | |
run: | | |
docker run -dit -p 8080:8080 --name exist --rm exist-vs | |
sleep 10s | |
- name: Run test | |
run: npm test | |
# Lint commit messages | |
# - name: lint commit message | |
# uses: wagoid/commitlint-github-action@v5 | |
# release: | |
# name: Release | |
# runs-on: ubuntu-latest | |
# needs: build | |
# if: github.ref == 'refs/heads/master' | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v4 | |
# - name: Setup Node.js | |
# uses: actions/setup-node@v4 | |
# with: | |
# cache: npm | |
# node-version: lts/* | |
# - name: Install dependencies | |
# run: npm ci --no-optional | |
# - name: Perform Release | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# PUBLIC_REPO: ${{ secrets.PUBLIC_REPO }} | |
# run: npx semantic-release |