Skip to content

Update scalatest to 3.2.17 #2064

Update scalatest to 3.2.17

Update scalatest to 3.2.17 #2064

Workflow file for this run

name: Scala CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/[email protected]
with:
java-version: 17
distribution: 'adopt'
cache: 'sbt'
- name: Run tests
run: sbt test
- name: Package artifact
run: sbt universal:packageBin
- name: Upload importer artifact
uses: actions/upload-artifact@v3
with:
name: bus-stops-importer.zip
path: modules/importer/target/universal/importer-*.zip
if-no-files-found: error
Build-and-Push-Docker-Image:
runs-on: ubuntu-latest
needs: build-and-test
name: Docker Build, Tag, Push
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create Tag
id: docker_meta
uses: crazy-max/[email protected]
with:
images: ghcr.io/faustin0/bus-info/app # base name for tag
tags: |
type=ref,event=tag
type=sha
- name: Build container image
uses: docker/build-push-action@v4
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}