build(deps): bump docker/build-push-action from 6.14.0 to 6.15.0 #373
Workflow file for this run
This file contains hidden or 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
name: Test Docker image | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [18, 20, 22] | |
steps: | |
- uses: actions/checkout@v4.2.2 | |
- name: Build and test Docker image | |
run: | | |
echo "Testing Node.js ${{ matrix.node-version }}" | |
# Build and test the Docker image | |
IMAGE_PATH="${{ matrix.node-version }}" | |
VERSIONS=$(docker run -i $(docker build -q ${IMAGE_PATH}) /bin/sh -c "node --version && npm --version && git --version") | |
echo "$VERSIONS" | |
# Check Node.js version | |
if ! echo "$VERSIONS" | grep -q "v${{ matrix.node-version }}"; then | |
echo "::error::Expected Node.js v${{ matrix.node-version }} but got different version" | |
exit 1 | |
fi | |
auto-merge: | |
runs-on: ubuntu-latest | |
needs: build | |
permissions: | |
pull-requests: write | |
contents: write | |
steps: | |
- name: Automatically merge dependabot upgrades | |
uses: fastify/github-action-merge-dependabot@v3.11.0 | |
with: | |
target: minor |