Skip to content

Commit

Permalink
experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmrdavid authored Jul 11, 2024
1 parent 8d2223a commit 27df29e
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 10 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name: Build

on:
workflow_call: # this means this runs only when called in another workflow
workflow_call: # allows to be invoked as part of a larger workflow
workflow_dispatch: # allows for the workflow to run manually see: https://docs.github.com/en/actions/using-workflows/manually-running-a-workflow

env:
Expand Down Expand Up @@ -33,8 +33,11 @@ jobs:
with:
dotnet-version: '3.1.x'

- name: Restore dependencies
run: dotnet restore $solution

- name: Build
run: dotnet build $solution #--configuration $config #--no-restore -p:FileVersionRevision=$GITHUB_RUN_NUMBER -p:ContinuousIntegrationBuild=true
run: dotnet build $solution -p:FileVersionRevision=$GITHUB_RUN_NUMBER -p:ContinuousIntegrationBuild=true

- name: Upload built-code # allows next job to consume built project
uses: actions/upload-artifact@v2
with:
name: built-code
path: ./
13 changes: 10 additions & 3 deletions .github/workflows/codeQL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main", "feature/**" ]
branches: [ "main"]
schedule:
- cron: '0 0 * * 1' # Weekly Monday run, needed for weekly reports
workflow_call: # allows to be invoked as part of a larger workflow
workflow_dispatch: # allows for the workflow to run manually see: https://docs.github.com/en/actions/using-workflows/manually-running-a-workflow

env:
Expand Down Expand Up @@ -40,8 +41,14 @@ jobs:
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3
# - name: Checkout repository
# uses: actions/checkout@v3

- name: Download built-code
uses: actions/download-artifact@v2
with:
name: build-artifacts
path: ./ # This path will match the upload path

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,15 @@ jobs:
needs: invoke-build-workflow # Can only test after build completes

steps:
- uses: actions/checkout@v3
# - uses: actions/checkout@v3
# with:
# submodules: true

- name: Download built-code
uses: actions/download-artifact@v2
with:
submodules: true
name: build-artifacts
path: ./ # This path will match the upload path

- name: Set up Node.js
uses: actions/setup-node@v3
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/validate_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# name: Validate PR

# on:
# pull_request:
# branches:
# - '**' # run on all pull requests
# paths-ignore: [ '**.md' ]
# workflow_dispatch: # allows for the workflow to run manually see: https://docs.github.com/en/actions/using-workflows/manually-running-a-workflow

# jobs:

# # Invoke build workflow and install azurite may run in parallel
# invoke-build-workflow: # Call re-useable build workflow
# uses: ./.github/workflows/build.yml

# install-azurite:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: true

# - name: Set up Node.js
# uses: actions/setup-node@v3
# with:
# node-version: '16.x'

# - name: Install Azurite
# run: npm install -g azurite

0 comments on commit 27df29e

Please sign in to comment.