Skip to content

Commit

Permalink
Enable GitHub Action for tests
Browse files Browse the repository at this point in the history
Enable GitHub Action for tests.
  • Loading branch information
HeavyWombat committed Dec 13, 2024
1 parent 62b6102 commit 0b9d59a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Tests

on:
push:
tags-ignore:
- '**'
branches:
- main
pull_request:
branches:
- main

jobs:
build:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23.x

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Build
run: go build ./...

- name: Test
run: docker build --tag registry-image-resource --target tests --build-arg base_image=paketobuildpacks/run-jammy-base:latest .

0 comments on commit 0b9d59a

Please sign in to comment.