Skip to content

Commit

Permalink
Add build workflow for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
blazer82 committed Jun 12, 2024
1 parent 3b48b8b commit 42c3b8b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: build

on:
pull_request:
push:
branches:
- main

env:
TEST_TAG: analytodon-cli:test

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: 'Build docker image'
uses: docker/build-push-action@v5
with:
context: .
load: true
tags: ${{ env.TEST_TAG }}
- name: Test
run: docker run --rm ${{ env.TEST_TAG }} /analytodon-cli/bin/run hello

0 comments on commit 42c3b8b

Please sign in to comment.