-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: use npm packages * chore: make firebaseProjectId optionally * chore: reduce max firebase sites to circumvent usage limit * remove unsupported test workflow * update test.yaml * use personal token * use personal token * use personal token
- Loading branch information
1 parent
74c5e75
commit 96978f4
Showing
61 changed files
with
427 additions
and
16,518 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,13 +1,14 @@ | ||
name: Deploy | ||
name: Publish to NPM | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
job: | ||
description: Job to run | ||
description: Package to publish | ||
required: true | ||
type: choice | ||
options: | ||
- cli | ||
- shared | ||
default: cli | ||
semver: | ||
description: Bump version | ||
|
@@ -30,7 +31,7 @@ jobs: | |
outputs: | ||
version: ${{steps.version-out.outputs.version}} | ||
env: | ||
DIR: apps/cli | ||
DIR: apps/${{github.event.inputs.job}} | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -41,9 +42,9 @@ jobs: | |
node-version: '20' | ||
|
||
- name: Install deps | ||
run: cd ${{env.DIR}} && npm install | ||
run: npm install --workspaces | ||
- name: Run test | ||
run: cd ${{env.DIR}} && npm run test | ||
run: cd apps/shared && npm run test | ||
- name: Compile | ||
run: cd ${{env.DIR}} && npm run build | ||
- name: Bump version | ||
|
@@ -66,10 +67,10 @@ jobs: | |
with: | ||
author_name: Sokari | ||
author_email: [email protected] | ||
message: "Release CLI version ${{ steps.publish.outputs.version }}" | ||
message: "Release ${{github.event.inputs.job}} version ${{ steps.publish.outputs.version }}" | ||
add: '${{ env.DIR }}/*.json' | ||
push: 'origin main --force' | ||
tag: 'v${{steps.publish.outputs.version}} --force' | ||
tag: 'v${{steps.publish.outputs.version}}-${{github.event.inputs.job}} --force' | ||
|
||
deploy-docker: | ||
if: ${{ github.event.inputs.job == 'cli' && github.event.inputs.build-docker == 'true' }} | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -7,62 +7,28 @@ permissions: | |
jobs: | ||
test-deploy: | ||
runs-on: ubuntu-latest | ||
env: | ||
DIR: apps/cli | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Install deps | ||
run: cd ${{env.DIR}} && npm i | ||
run: npm i --workspaces | ||
|
||
- name: Run test | ||
run: cd ${{env.DIR}} && npm run test | ||
- name: Test Shared package | ||
run: cd apps/shared && npm run test | ||
|
||
- name: Generate and deploy Allure Report | ||
uses: cybersokari/[email protected] | ||
env: | ||
SLACK_TOKEN: ${{secrets.SLACK_TOKEN}} | ||
GOOGLE_CREDENTIALS_JSON: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
uses: cybersokari/[email protected] | ||
with: | ||
allure_results_path: '${{env.DIR}}/allure-results' | ||
allure_results_path: 'apps/shared/allure-results' | ||
storage_bucket: ${{vars.STORAGE_BUCKET}} | ||
slack_channel: ${{secrets.SLACK_CHANNEL_ID}} | ||
slack_token: ${{secrets.SLACK_TOKEN}} | ||
show_history: true | ||
retries: 10 | ||
prefix: 'pr-test' | ||
update_pr: 'comment' | ||
test-output: | ||
runs-on: ubuntu-latest | ||
env: | ||
DIR: apps/cli | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Install deps | ||
run: cd ${{env.DIR}} && npm i | ||
|
||
- name: Run test | ||
run: cd ${{env.DIR}} && npm run test | ||
|
||
- name: Generate and deploy Allure Report | ||
uses: cybersokari/[email protected] | ||
env: | ||
GOOGLE_CREDENTIALS_JSON: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
with: | ||
allure_results_path: '${{env.DIR}}/allure-results' | ||
storage_bucket: ${{vars.STORAGE_BUCKET}} | ||
show_history: true | ||
retries: 10 | ||
prefix: 'pr-test' | ||
update_pr: 'comment' | ||
output: allure-report | ||
pr_comment : 'true' | ||
github_token: ${{secrets.PERSONAL_ACCESS_TOKEN}} | ||
google_credentials_json: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} |
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.