Skip to content

Merge pull request #399 from pjonsson/ci-pin-actions #210

Merge pull request #399 from pjonsson/ci-pin-actions

Merge pull request #399 from pjonsson/ci-pin-actions #210

Workflow file for this run

name: unit-testing
on:
push:
pull_request:
release:
types: [published]
repository_dispatch:
types: [udf-dispatch]
env:
IMAGE_NAME: force-unit-test
jobs:
testing:
name: Compile in Docker container, and run unit tests
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Build image
run: docker build . --file Dockerfile --tag $IMAGE_NAME --build-arg build=with_tests
- name: Run unit tests
run: docker run --rm -t --user "$(id -u):$(id -g)" $IMAGE_NAME force-unit-testing