Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
steps:
- uses: actions/checkout@master
with:
submodules: 'recursive'
submodules: "recursive"
- name: Test
uses: docker://golang:latest
with:
Expand Down Expand Up @@ -47,12 +47,15 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
- name: Publish to registry
if: "contains(github.ref, 'master') && !contains(toJSON(github.event.commits.*.msg), '[skip-ci]')"
uses: elgohr/Publish-Docker-Github-Action@master
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
name: maxcleme/beadcolors
dockerfile: Dockerfile.website
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: ${{ steps.tagging.outputs.new_tag }},latest
- name: Build and push
uses: docker/build-push-action@v6
with:
tags:
- maxcleme/beadcolors:${{ steps.tagging.outputs.new_tag }}
- maxcleme/beadcolors:latest
push: true
29 changes: 29 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: PR Checks

on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
submodules: "recursive"
- name: Test
uses: docker://golang:latest
with:
entrypoint: /bin/sh
args: |
-c "\
cd generation/ && go test ./...
- name: Test Generation
uses: docker://golang:latest
with:
entrypoint: /bin/sh
args: |
-c "\
cd generation/ && go run ./... ../raw ../gen
- name: Build
uses: docker/build-push-action@v6
with:
push: false
File renamed without changes.