chore: enable github actions widget for scaffolding items that can build with github actions

This commit is contained in:
blam
2020-08-05 05:02:11 +02:00
parent 31a92961e9
commit 854e78d056
4 changed files with 26 additions and 10 deletions
@@ -1,6 +1,11 @@
name: Frontend CI
on: [push, pull_request]
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
@@ -3,6 +3,9 @@ kind: Component
metadata:
name: {{cookiecutter.component_id}}
description: {{cookiecutter.description}}
annotations:
github.com/project-slug: {{cookiecutter.storePath}}
backstage.io/github-actions-id: {{cookiecutter.storePath}}
spec:
type: website
lifecycle: experimental
@@ -1,16 +1,21 @@
name: Java CI
name: Java CI with Maven
on: [push]
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: mvn -B package --file pom.xml
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build with Maven
run: mvn -B package --file pom.xml
@@ -3,6 +3,9 @@ kind: Component
metadata:
name: {{cookiecutter.component_id}}
description: {{cookiecutter.description}}
annotations:
github.com/project-slug: {{cookiecutter.storePath}}
backstage.io/github-actions-id: {{cookiecutter.storePath}}
spec:
type: service
lifecycle: experimental