-
Notifications
You must be signed in to change notification settings - Fork 1
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
8 changed files
with
133 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
env: | ||
NODE: '12.20.1' | ||
METEOR: '2.0' | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checking repo out | ||
uses: actions/checkout@v1 | ||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ env.NODE }} | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Linting | ||
run: npm run lint | ||
|
||
test: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checking repo out | ||
uses: actions/checkout@v1 | ||
- name: Setup Meteor | ||
uses: meteorengineer/setup-meteor@v1 | ||
with: | ||
meteor-release: ${{ env.METEOR }} | ||
- name: Install dependencies | ||
run: meteor npm install | ||
- name: Run tests | ||
run: npm run test | ||
|
||
deploy: | ||
runs-on: ubuntu-20.04 | ||
needs: [lint, test] | ||
steps: | ||
- name: Checking repo out | ||
uses: actions/checkout@v1 | ||
|
||
- name: Setup Meteor | ||
uses: meteorengineer/setup-meteor@v1 | ||
with: | ||
meteor-release: ${{ env.METEOR }} | ||
|
||
- name: Install dependencies | ||
run: meteor npm install | ||
|
||
- name: Build application | ||
run: npm run build | ||
|
||
- name: Collect data | ||
id: data | ||
run: | | ||
TAG=$(echo ${{ github.ref }} | cut -d'/' -f 3) | ||
echo ::set-output name=TAG::${TAG} | ||
echo ::set-output name=REPO::${{ github.repository }} | ||
echo ::set-output name=SRC::${{ github.event.repository.name }}.tar.gz | ||
echo ::set-output name=DST::recorder.tar.gz | ||
shell: bash | ||
|
||
- name: Upload application bundle to the artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ steps.data.outputs.dst }} | ||
path: ${{ steps.data.outputs.src }} | ||
|
||
- name: Retrieve UPLOAD_URL | ||
id: release | ||
run: | | ||
upload_url=$(curl -sL https://api.github.com/repos/${{ steps.data.outputs.repo }}/releases/tags/${{ steps.data.outputs.tag }} | jq -r '.upload_url') | ||
echo ::set-output name=UPLOAD_URL::$upload_url | ||
shell: bash | ||
|
||
- name: Upload Release Assets | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.release.outputs.upload_url }} | ||
asset_path: ${{ steps.data.outputs.src }} | ||
asset_name: ${{ steps.data.outputs.dst }} | ||
asset_content_type: application/gzip |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: verification | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- '**.md' | ||
- 'LICENCE' | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
- 'LICENCE' | ||
|
||
env: | ||
NODE: '12.20.1' | ||
METEOR: '2.0' | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ env.NODE }} | ||
- run: npm ci | ||
- run: npm run lint | ||
test-meteor: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: meteorengineer/setup-meteor@v1 | ||
with: | ||
meteor-release: ${{ env.METEOR }} | ||
- run: meteor npm install | ||
- run: npm run test |
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
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 |
---|---|---|
|
@@ -15,4 +15,4 @@ export const RECORDER = { | |
|
||
export const ENV = { | ||
LOGGING: LOGGING === 'true', | ||
} | ||
}; |
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
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