Skip to content

Commit

Permalink
Merge pull request #767 from eisbuk/feature/arbitrary-attendance-period
Browse files Browse the repository at this point in the history
Feature/arbitrary attendance period
  • Loading branch information
silviot committed Jun 23, 2023
2 parents 8af221b + 1080172 commit d105eec
Show file tree
Hide file tree
Showing 23 changed files with 623 additions and 193 deletions.
4 changes: 2 additions & 2 deletions .github/workflow.templates/cache.lib.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#@ def cache_node():
name: Cache node modules and firebase emulators
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.rush
Expand All @@ -13,7 +13,7 @@ with:

#@ def cache_cypress():
name: Cache node modules, firebase emulators and cypress
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.rush
Expand Down
2 changes: 1 addition & 1 deletion .github/workflow.templates/rclone.lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ run: echo "${{ secrets.GCLOUD_JSON_BASE64 }}" | base64 -d > .gcloud.json
#@ def set_results_destination(action_id="results-destination", additional_id=''):
name: Set destination of test results
if: (success() || failure()) && steps.has_secret.outputs.HAS_SECRETS
run: #@ "echo \"::set-output name=RESULTS_DESTINATION::$(date +%%Y-%%m-%%d)/${{ github.run_id }}%s\"" % additional_id
run: #@ "echo \"RESULTS_DESTINATION=$(date +%%Y-%%m-%%d)/${{ github.run_id }}%s\" >> $GITHUB_OUTPUT" % additional_id
id: #@ action_id
#@ end
2 changes: 1 addition & 1 deletion .github/workflow.templates/secrets.lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
name: Check if secrets are available
id: has_secret
if: success() || failure()
run: '[ "${{ secrets.CYPRESS_KEY }}" != "" ] && echo ::set-output name=HAS_SECRETS::true || echo ::set-output name=HAS_SECRETS::'
run: '[ "${{ secrets.CYPRESS_KEY }}" != "" ] && echo HAS_SECRETS=true >> $GITHUB_OUTPUT || echo HAS_SECRETS= >> $GITHUB_OUTPUT'
#@ end
2 changes: 1 addition & 1 deletion .github/workflow.templates/setup.lib.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#@ def checkout(fetchdepth=1):
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: "recursive"
fetch-depth: #@ fetchdepth
Expand Down
48 changes: 24 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Cache node modules and firebase emulators
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.rush
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Check if secrets are available
id: has_secret
if: success() || failure()
run: '[ "${{ secrets.CYPRESS_KEY }}" != "" ] && echo ::set-output name=HAS_SECRETS::true || echo ::set-output name=HAS_SECRETS::'
run: '[ "${{ secrets.CYPRESS_KEY }}" != "" ] && echo HAS_SECRETS=true >> $GITHUB_OUTPUT || echo HAS_SECRETS= >> $GITHUB_OUTPUT'
- name: Create Sentry release
uses: getsentry/action-release@v1
if: steps.has_secret.outputs.HAS_SECRETS
Expand Down Expand Up @@ -94,15 +94,15 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Cache node modules and firebase emulators
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.rush
Expand All @@ -122,7 +122,7 @@ jobs:
- name: Check if secrets are available
id: has_secret
if: success() || failure()
run: '[ "${{ secrets.CYPRESS_KEY }}" != "" ] && echo ::set-output name=HAS_SECRETS::true || echo ::set-output name=HAS_SECRETS::'
run: '[ "${{ secrets.CYPRESS_KEY }}" != "" ] && echo HAS_SECRETS=true >> $GITHUB_OUTPUT || echo HAS_SECRETS= >> $GITHUB_OUTPUT'
- name: Test Report
uses: dorny/test-reporter@v1
if: steps.has_secret.outputs.HAS_SECRETS && (success() || failure())
Expand All @@ -144,7 +144,7 @@ jobs:
run: echo "${{ secrets.GCLOUD_JSON_BASE64 }}" | base64 -d > .gcloud.json
- name: Set destination of test results
if: (success() || failure()) && steps.has_secret.outputs.HAS_SECRETS
run: echo "::set-output name=RESULTS_DESTINATION::$(date +%Y-%m-%d)/${{ github.run_id }}"
run: echo "RESULTS_DESTINATION=$(date +%Y-%m-%d)/${{ github.run_id }}" >> $GITHUB_OUTPUT
id: results-destination
- name: Install rclone
if: (success() || failure()) && steps.has_secret.outputs.HAS_SECRETS
Expand Down Expand Up @@ -173,15 +173,15 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Cache node modules and firebase emulators
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.rush
Expand All @@ -204,15 +204,15 @@ jobs:
name: Cypress browser tests
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Cache node modules, firebase emulators and cypress
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.rush
Expand Down Expand Up @@ -246,7 +246,7 @@ jobs:
- name: Check if secrets are available
id: has_secret
if: success() || failure()
run: '[ "${{ secrets.CYPRESS_KEY }}" != "" ] && echo ::set-output name=HAS_SECRETS::true || echo ::set-output name=HAS_SECRETS::'
run: '[ "${{ secrets.CYPRESS_KEY }}" != "" ] && echo HAS_SECRETS=true >> $GITHUB_OUTPUT || echo HAS_SECRETS= >> $GITHUB_OUTPUT'
- name: Coveralls
uses: coverallsapp/github-action@master
if: steps.has_secret.outputs.HAS_SECRETS
Expand All @@ -261,7 +261,7 @@ jobs:
run: echo "${{ secrets.GCLOUD_JSON_BASE64 }}" | base64 -d > .gcloud.json
- name: Set destination of test results
if: (success() || failure()) && steps.has_secret.outputs.HAS_SECRETS
run: echo "::set-output name=RESULTS_DESTINATION::$(date +%Y-%m-%d)/${{ github.run_id }}"
run: echo "RESULTS_DESTINATION=$(date +%Y-%m-%d)/${{ github.run_id }}" >> $GITHUB_OUTPUT
id: results-destination
- name: Install rclone
if: (success() || failure()) && steps.has_secret.outputs.HAS_SECRETS
Expand Down Expand Up @@ -300,7 +300,7 @@ jobs:
- name: Check if secrets are available
id: has_secret
if: success() || failure()
run: '[ "${{ secrets.CYPRESS_KEY }}" != "" ] && echo ::set-output name=HAS_SECRETS::true || echo ::set-output name=HAS_SECRETS::'
run: '[ "${{ secrets.CYPRESS_KEY }}" != "" ] && echo HAS_SECRETS=true >> $GITHUB_OUTPUT || echo HAS_SECRETS= >> $GITHUB_OUTPUT'
- name: Finalize Coveralls
uses: coverallsapp/github-action@master
if: steps.has_secret.outputs.HAS_SECRETS
Expand All @@ -312,15 +312,15 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Cache node modules and firebase emulators
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.rush
Expand All @@ -340,15 +340,15 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Cache node modules and firebase emulators
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.rush
Expand All @@ -366,7 +366,7 @@ jobs:
- name: Check if secrets are available
id: has_secret
if: success() || failure()
run: '[ "${{ secrets.CYPRESS_KEY }}" != "" ] && echo ::set-output name=HAS_SECRETS::true || echo ::set-output name=HAS_SECRETS::'
run: '[ "${{ secrets.CYPRESS_KEY }}" != "" ] && echo HAS_SECRETS=true >> $GITHUB_OUTPUT || echo HAS_SECRETS= >> $GITHUB_OUTPUT'
- name: Build client storybook
run: cd packages/client && rushx build-storybook
- name: Publish storybook
Expand All @@ -376,7 +376,7 @@ jobs:
run: echo "${{ secrets.GCLOUD_JSON_BASE64 }}" | base64 -d > .gcloud.json
- name: Set destination of test results
if: (success() || failure()) && steps.has_secret.outputs.HAS_SECRETS
run: echo "::set-output name=RESULTS_DESTINATION::$(date +%Y-%m-%d)/${{ github.run_id }}"
run: echo "RESULTS_DESTINATION=$(date +%Y-%m-%d)/${{ github.run_id }}" >> $GITHUB_OUTPUT
id: results-destination
- name: Install rclone
if: (success() || failure()) && steps.has_secret.outputs.HAS_SECRETS
Expand All @@ -403,15 +403,15 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Cache node modules and firebase emulators
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.rush
Expand All @@ -429,7 +429,7 @@ jobs:
- name: Check if secrets are available
id: has_secret
if: success() || failure()
run: '[ "${{ secrets.CYPRESS_KEY }}" != "" ] && echo ::set-output name=HAS_SECRETS::true || echo ::set-output name=HAS_SECRETS::'
run: '[ "${{ secrets.CYPRESS_KEY }}" != "" ] && echo HAS_SECRETS=true >> $GITHUB_OUTPUT || echo HAS_SECRETS= >> $GITHUB_OUTPUT'
- name: Build ui storybook
run: cd packages/ui && rushx build-storybook
- name: Publish storybook
Expand All @@ -439,7 +439,7 @@ jobs:
run: echo "${{ secrets.GCLOUD_JSON_BASE64 }}" | base64 -d > .gcloud.json
- name: Set destination of test results
if: (success() || failure()) && steps.has_secret.outputs.HAS_SECRETS
run: echo "::set-output name=RESULTS_DESTINATION::$(date +%Y-%m-%d)/${{ github.run_id }}"
run: echo "RESULTS_DESTINATION=$(date +%Y-%m-%d)/${{ github.run_id }}" >> $GITHUB_OUTPUT
id: results-destination
- name: Install rclone
if: (success() || failure()) && steps.has_secret.outputs.HAS_SECRETS
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/cypress-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ jobs:
- 5
- 6
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Cache node modules, firebase emulators and cypress
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.rush
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Check if secrets are available
id: has_secret
if: success() || failure()
run: '[ "${{ secrets.CYPRESS_KEY }}" != "" ] && echo ::set-output name=HAS_SECRETS::true || echo ::set-output name=HAS_SECRETS::'
run: '[ "${{ secrets.CYPRESS_KEY }}" != "" ] && echo HAS_SECRETS=true >> $GITHUB_OUTPUT || echo HAS_SECRETS= >> $GITHUB_OUTPUT'
- name: Coveralls
uses: coverallsapp/github-action@master
if: steps.has_secret.outputs.HAS_SECRETS
Expand All @@ -80,7 +80,7 @@ jobs:
run: echo "${{ secrets.GCLOUD_JSON_BASE64 }}" | base64 -d > .gcloud.json
- name: Set destination of test results
if: (success() || failure()) && steps.has_secret.outputs.HAS_SECRETS
run: echo "::set-output name=RESULTS_DESTINATION::$(date +%Y-%m-%d)/${{ github.run_id }}-${{ matrix.dummy1 }}-${{ matrix.dummy2 }}"
run: echo "RESULTS_DESTINATION=$(date +%Y-%m-%d)/${{ github.run_id }}-${{ matrix.dummy1 }}-${{ matrix.dummy2 }}" >> $GITHUB_OUTPUT
id: results-destination
- name: Install rclone
if: (success() || failure()) && steps.has_secret.outputs.HAS_SECRETS
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
steps:
- name: Install expect
run: sudo apt-get -y install expect
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Cache node modules and firebase emulators
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.rush
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Cache node modules and firebase emulators
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/.rush
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Check if secrets are available
id: has_secret
if: success() || failure()
run: '[ "${{ secrets.CYPRESS_KEY }}" != "" ] && echo ::set-output name=HAS_SECRETS::true || echo ::set-output name=HAS_SECRETS::'
run: '[ "${{ secrets.CYPRESS_KEY }}" != "" ] && echo HAS_SECRETS=true >> $GITHUB_OUTPUT || echo HAS_SECRETS= >> $GITHUB_OUTPUT'
- name: Publish to Chromatic
uses: chromaui/action@v1
if: steps.has_secret.outputs.HAS_SECRETS
Expand Down
Loading

0 comments on commit d105eec

Please sign in to comment.