Skip to content

Trigger CI on PR #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 9, 2024
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
8 changes: 3 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ name: CI LionWeb-C#

on:
workflow_dispatch:
pull_request:
push:
branches:
- '*'
tags:
- '*'

Expand All @@ -19,10 +18,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Get all history to allow automatic versioning using MinVer
# TODO can we set this to 1 since we only need a tag?
fetch-depth: 1

- name: Setup .NET
uses: actions/setup-dotnet@v4
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ and this project adheres _loosely_ to [Semantic Versioning](https://semver.org/s


## [0.2.2] - unreleased

### Added

- Generate interface for each factory; factory implementation methods are `virtual` now.
Expand All @@ -27,7 +28,7 @@ and this project adheres _loosely_ to [Semantic Versioning](https://semver.org/s
- Released as open source under the Apache-2.0 license.
- Set up CI using GitHub Actions.

(Both are infrastructural—i.e.: non-code— changes.)
(Both are infrastructural —i.e.: non-code— changes.)


## [0.2.1] - 2024-05-28
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,25 @@ This repository contains an implementation of (select parts of) the [LionWeb](ht
.NET projects:

* [`src/LionWeb-CSharp`]: implementation of LionWeb for/in C#
* [`src/LionWeb-CSharp-Generator`]: implementation of a C# code generator for LionWeb
* [`build/LionWeb-CSharp-build`]: a .NET console application that generates various source files in the `-Test` project
* [`test/LionWeb-CSharp-Test`]: unit tests for `LionWeb-CSharp`
* [`test/LionWeb-CSharp-Generator-Test`]: unit tests for `LionWeb-CSharp-Generator`

See these projects' respective `README`s for more information.


## CI

The CI is implemented through a GitHub Action, configured through the file [`build.yaml` workflow YAML file](./.github/workflows/build.yaml).
It's triggered:

* On every event for a Pull Request, including opening one.
* When a commit (on any branch) is tagged.
Provided that restoring, building, packaging, and running all tests are all successful,
then NuGet packages (for) `LionWeb-CSharp` and `LionWeb-CSharp-Generator` are published with the tag as version identification.


## License

The "Apache-2.0" open-source license applies to the work in this repository.
Expand Down
Loading