-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
220 changed files
with
3,686 additions
and
3,514 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# Ignore miscellaneous folders | ||
.github/ | ||
.idea/ | ||
.husky/ | ||
.vscode/ | ||
.yarn/ | ||
node_modules/ | ||
coverage/ | ||
dist/ | ||
node_modules/ | ||
tmp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,15 @@ name: CI Workflow | |
|
||
on: | ||
push: | ||
branches: | ||
- '**' # trigger on all branches | ||
# trigger on all branches except for dependabot-triggered push events | ||
branches-ignore: [ dependabot/** ] | ||
tags: | ||
- 'v*' # trigger on all tags | ||
paths-ignore: | ||
- '**.md' # ignore changes in markdown files | ||
pull_request: | ||
branches: [ develop ] | ||
types: [ opened, synchronize, reopened ] | ||
|
||
jobs: | ||
test: | ||
|
@@ -17,14 +19,16 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node-version: [12, 14.16, 16] | ||
node-version: [12, 14.17, 16] | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # Get all history and branches | ||
|
||
- name: Set up node ${{ matrix.node-version}} | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'yarn' | ||
|
@@ -38,12 +42,19 @@ jobs: | |
yarn run test:ci | ||
- name: Upload code coverage | ||
if: matrix.node-version == 14.16 # upload coverage report for current node version only | ||
uses: codecov/codecov-action@v2.0.3 | ||
if: matrix.node-version == 14.17 # upload coverage report for current node version only | ||
uses: codecov/codecov-action@v2.1.0 | ||
with: | ||
flags: unittests | ||
env_vars: ${{ matrix.os }}, ${{ matrix.node-version }} | ||
|
||
- name: Perform SonarCloud Analysis | ||
if: matrix.node-version == 14.17 # upload coverage report for current node version only | ||
uses: SonarSource/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
|
||
- name: Test build for GH Pages (Node < v16) | ||
if: matrix.node-version != 16 | ||
run: | | ||
|
@@ -67,14 +78,14 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node-version: [ 14.16 ] | ||
node-version: [ 14.17 ] | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up node ${{ matrix.node-version}} | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'yarn' | ||
|
@@ -104,23 +115,23 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
node-version: [ 14.16 ] | ||
node-version: [ 14.17 ] | ||
|
||
steps: | ||
- name: Get tag version | ||
id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} | ||
|
||
- name: Create Release | ||
id: create_release | ||
if: ${{ success() && startsWith(github.ref, 'refs/tags/') }} | ||
uses: softprops/action-gh-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TAG_VERSION: ${{ steps.get_version.outputs.VERSION }} | ||
with: | ||
name: Release ${{ env.TAG_VERSION }} | ||
body: "A prototype web application for the online edition of the [Anton Webern Gesamtausgabe](https://www.anton-webern.ch), located at the Musicological Seminar of the University of Basel. It is written in [Angular](https://angular.io/) and runs on [edition.anton-webern.ch](https://edition.anton-webern.ch).\n\n | ||
- name: Get tag version | ||
id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} | ||
|
||
- name: Create Release | ||
id: create_release | ||
if: ${{ success() && startsWith(github.ref, 'refs/tags/') }} | ||
uses: softprops/action-gh-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TAG_VERSION: ${{ steps.get_version.outputs.VERSION }} | ||
with: | ||
name: Release ${{ env.TAG_VERSION }} | ||
body: "A prototype web application for the online edition of the [Anton Webern Gesamtausgabe](https://www.anton-webern.ch), located at the Musicological Seminar of the University of Basel. It is written in [Angular](https://angular.io/) and runs on [edition.anton-webern.ch](https://edition.anton-webern.ch).\n\n | ||
Changes since last release: https://github.com/${{ github.repository }}/blob/${{ env.TAG_VERSION }}/CHANGELOG.md" | ||
draft: false | ||
prerelease: false | ||
draft: false | ||
prerelease: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.