Skip to content

Commit

Permalink
Merge pull request #749 from gdams/action
Browse files Browse the repository at this point in the history
store build-marketplace action in main to get dependabot updates
  • Loading branch information
gdams authored Oct 18, 2023
2 parents 6e945f9 + 49383d8 commit 8bd52a0
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ updates:
directory: "/"
schedule:
interval: "daily"
# Maintain dependencies for GitHub composite Actions (/.github/actions)
# Waiting for supporting wildcards see https://github.com/dependabot/dependabot-core/issues/5137
- package-ecosystem: "github-actions"
directory: "/.github/actions/azure-login"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/.github/actions/do-login"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/.github/actions/docker-build"
schedule:
interval: "daily"
- package-ecosystem: "maven"
directory: "/"
schedule:
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/build-marketplace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Marketplace build

on:
push:
branches: [ marketplace ]
pull_request:
branches: [ marketplace ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

- uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
with:
java-version: '21'
distribution: 'temurin'
cache: 'maven'

- name: Build api
run: ./mvnw --batch-mode clean install -Padoptium

- name: Build app
run: |
cd marketplace/
../mvnw --batch-mode clean install
- name: Upload yaml schema
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: schema.yaml
path: marketplace/adoptium-marketplace-schema/target/generated/openapi.yaml

- name: Upload json schema
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: schema.json
path: marketplace/adoptium-marketplace-schema/target/generated/openapi.json

- name: Upload example data
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: example.json
path: marketplace/adoptium-marketplace-schema-tests/src/test/resources/net/adoptium/marketplace/schema/example.json

0 comments on commit 8bd52a0

Please sign in to comment.