Skip to content

Commit

Permalink
Feature/shell (#7)
Browse files Browse the repository at this point in the history
* baseline with mudblazor

* add couchbase cluster starting stuff

* rename config file

* remove template crap

* start services

* main updates

* add test proj

* re-org folders

* remove services

* switch to mongo service

* update config model

* sort out mongo issues

* rename to int tests

* add unit test proj

* config fixes

* add auth0

* add precommit hook

* Revert "add auth0"

This reverts commit 2253133.

* upd app identifier, add ggshield-push

* add rough markdown support

* more nav work

* switch to realm

* Fix build for realm compatibility

* Load of work for diary screen

* debounce and cleanup

* add manager/reports editor pane

* add workflows

* update target sdk

* restore workloads

* workloads tweaking

* try windows agent
  • Loading branch information
DanWillman authored Sep 29, 2023
1 parent 656fba9 commit 275a155
Show file tree
Hide file tree
Showing 3 changed files with 171 additions and 0 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/mac-arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Build and Release Apple Silicon

on:
push:
branches:
- main

jobs:
build:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'

- name: Restore workloads
run: dotnet workload restore

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build -c Release

- name: Test
run: dotnet test

- name: Publish
run: dotnet publish -c Release -r osx-arm64 --self-contained true

- name: Get Latest Tag
id: get_latest_tag
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { data: tags } = await github.git.listTags({
owner: context.repo.owner,
repo: context.repo.repo
});
const latestTag = tags[0].ref;
const tagNumber = parseInt(latestTag.replace('refs/tags/v', ''));
const newTag = `v${tagNumber + 1}`;
console.log(`Latest tag: ${latestTag}, new tag: ${newTag}`);
return newTag;
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get_latest_tag.outputs.result }},macos-arm64
release_name: Release ${{ steps.get_latest_tag.outputs.result }}
draft: true
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./bin/Release/net6.0/osx-arm64/publish/MyApp
asset_name: MyApp
asset_content_type: application/octet-stream
31 changes: 31 additions & 0 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and Test validation

on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'

- name: Restore workloads
run: dotnet workload restore

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --no-restore

- name: Test
run: dotnet test
70 changes: 70 additions & 0 deletions .github/workflows/win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Build and Release Windows

on:
push:
branches:
- main

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'

- name: Restore workloads
run: dotnet workload restore

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build -c Release

- name: Test
run: dotnet test

- name: Publish
run: dotnet publish -c Release -r win-x64 --self-contained true

- name: Get Latest Tag
id: get_latest_tag
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { data: tags } = await github.git.listTags({
owner: context.repo.owner,
repo: context.repo.repo
});
const latestTag = tags[0].ref;
const tagNumber = parseInt(latestTag.replace('refs/tags/v', ''));
const newTag = `v${tagNumber + 1}`;
console.log(`Latest tag: ${latestTag}, new tag: ${newTag}`);
return newTag;
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get_latest_tag.outputs.result }},win-x64
release_name: Release ${{ steps.get_latest_tag.outputs.result }}
draft: true
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./bin/Release/net6.0/win-x64/publish/MyApp.exe
asset_name: MyApp.exe
asset_content_type: application/octet-stream

0 comments on commit 275a155

Please sign in to comment.