From 2397a8c304504e34d86057b0e7deca6df92e5ca8 Mon Sep 17 00:00:00 2001 From: jasenko Date: Sun, 9 Oct 2022 21:16:02 +0200 Subject: [PATCH 01/14] Create test-repo1.yml --- .github/workflows/test-repo1.yml | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/test-repo1.yml diff --git a/.github/workflows/test-repo1.yml b/.github/workflows/test-repo1.yml new file mode 100644 index 00000000000..1921f0427be --- /dev/null +++ b/.github/workflows/test-repo1.yml @@ -0,0 +1,39 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + Date + ls + echo Add other actions to build, + echo test, and deploy your project. From c050c4400b392b71260af165770d9ab4b91c9e37 Mon Sep 17 00:00:00 2001 From: jasenko Date: Sun, 9 Oct 2022 21:18:07 +0200 Subject: [PATCH 02/14] Update test-repo1.yml --- .github/workflows/test-repo1.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-repo1.yml b/.github/workflows/test-repo1.yml index 1921f0427be..2534b2b3066 100644 --- a/.github/workflows/test-repo1.yml +++ b/.github/workflows/test-repo1.yml @@ -33,7 +33,7 @@ jobs: # Runs a set of commands using the runners shell - name: Run a multi-line script run: | - Date - ls + date + ls -al echo Add other actions to build, echo test, and deploy your project. From 33cd0c78fba1232a58f08f058d84d28846f34e2c Mon Sep 17 00:00:00 2001 From: jasenko Date: Sun, 9 Oct 2022 21:31:36 +0200 Subject: [PATCH 03/14] Create pipeline.yml --- .github/workflows/pipeline.yml | 51 ++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/pipeline.yml diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml new file mode 100644 index 00000000000..afb735654d9 --- /dev/null +++ b/.github/workflows/pipeline.yml @@ -0,0 +1,51 @@ +# This is a basic workflow to help you get started with Actions + +name: Deployment Pipeline + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + simple-deployment: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '18' + + - name: npm-install + run: npm-install + + - name: lint + run: npm run eslint + + + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. From 3c2ac63a524b13cf6e63c333622a433a097eb796 Mon Sep 17 00:00:00 2001 From: jasenko Date: Sun, 9 Oct 2022 21:33:45 +0200 Subject: [PATCH 04/14] Update pipeline.yml --- .github/workflows/pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index afb735654d9..ec53d200675 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -25,7 +25,7 @@ jobs: node-version: '18' - name: npm-install - run: npm-install + run: npm install - name: lint run: npm run eslint From 79f6d042fc712f5ce3dba3c30eafc783153224cf Mon Sep 17 00:00:00 2001 From: jasenko Date: Sun, 9 Oct 2022 21:35:51 +0200 Subject: [PATCH 05/14] Update pipeline.yml --- .github/workflows/pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index ec53d200675..8633f913f89 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: '18' + node-version: '16' - name: npm-install run: npm install From 3ebd55c9b6afc8272b348e0c4847bc6bede0bf12 Mon Sep 17 00:00:00 2001 From: jasenko Date: Sun, 9 Oct 2022 21:38:03 +0200 Subject: [PATCH 06/14] Update pipeline.yml --- .github/workflows/pipeline.yml | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 8633f913f89..9602d411478 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -15,37 +15,20 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # This workflow contains a single job called "build" + simple-deployment: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: '16' - - name: npm-install + - name: npm install run: npm install - name: lint run: npm run eslint - build: - # The type of runner that the job will run on - runs-on: ubuntu-latest - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 - - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! - - # Runs a set of commands using the runners shell - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. From 8d571aa1d3e38f661ac0414c407d1af528965cc6 Mon Sep 17 00:00:00 2001 From: jasenko Date: Sun, 9 Oct 2022 21:42:37 +0200 Subject: [PATCH 07/14] Update pipeline.yml --- .github/workflows/pipeline.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 9602d411478..00b40468f98 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -23,9 +23,7 @@ jobs: - uses: actions/setup-node@v3 with: node-version: '16' - - - name: npm install - run: npm install + - name: lint run: npm run eslint From 426c550ed6a3a0161ae23b56f2eaa2a4498c4f6b Mon Sep 17 00:00:00 2001 From: jasenko Date: Sun, 9 Oct 2022 21:45:02 +0200 Subject: [PATCH 08/14] Update pipeline.yml --- .github/workflows/pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 00b40468f98..222e6dbd4e3 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -26,7 +26,7 @@ jobs: - name: lint - run: npm run eslint + run: npx run eslint From ee7998226bc5ec5693df1b2893b9cd1ee1bf34d2 Mon Sep 17 00:00:00 2001 From: jasenko Date: Sun, 9 Oct 2022 21:48:05 +0200 Subject: [PATCH 09/14] Update pipeline.yml --- .github/workflows/pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 222e6dbd4e3..fad8507afa9 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -26,7 +26,7 @@ jobs: - name: lint - run: npx run eslint + run: npm run lint From 539e0172dd05954aee0c6f45fb8365f907314b4c Mon Sep 17 00:00:00 2001 From: jasenko Date: Sun, 9 Oct 2022 21:51:29 +0200 Subject: [PATCH 10/14] Update pipeline.yml --- .github/workflows/pipeline.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index fad8507afa9..3696e4d0ee1 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -17,16 +17,12 @@ on: jobs: simple-deployment: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: '16' - - - - name: lint - run: npm run lint + node-version: '18.10.0' From 10fa6e1bfa076476580a792ff50af8f1d6cb6b4e Mon Sep 17 00:00:00 2001 From: jasenko Date: Sun, 9 Oct 2022 21:52:45 +0200 Subject: [PATCH 11/14] Update pipeline.yml --- .github/workflows/pipeline.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 3696e4d0ee1..b936e58df8a 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -23,6 +23,9 @@ jobs: - uses: actions/setup-node@v3 with: node-version: '18.10.0' + - uses: actions/javascript-action@v1 + with: + milliseconds: 1000 From a9e82bf84918cc38d18fe3cbc097470b1be8388f Mon Sep 17 00:00:00 2001 From: jasenko Date: Sun, 9 Oct 2022 22:19:39 +0200 Subject: [PATCH 12/14] Update pipeline.yml --- .github/workflows/pipeline.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index b936e58df8a..74fad4ab9c1 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -23,9 +23,10 @@ jobs: - uses: actions/setup-node@v3 with: node-version: '18.10.0' - - uses: actions/javascript-action@v1 - with: - milliseconds: 1000 + - run: corepack enable + - run: yarn + - run: yarn test + From 4b704cd1f059fd3c8b226f25a68f94f81341f35e Mon Sep 17 00:00:00 2001 From: jasenko Date: Mon, 10 Oct 2022 12:45:46 +0200 Subject: [PATCH 13/14] Update pipeline.yml --- .github/workflows/pipeline.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 74fad4ab9c1..ff5748a1941 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -25,6 +25,7 @@ jobs: node-version: '18.10.0' - run: corepack enable - run: yarn + - run: yarn lint - run: yarn test From d24d103d4a7d1133c28cef2cef367e2c03a71dce Mon Sep 17 00:00:00 2001 From: jasenko Date: Mon, 10 Oct 2022 12:53:24 +0200 Subject: [PATCH 14/14] Update pipeline.yml --- .github/workflows/pipeline.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index ff5748a1941..306b743f7ac 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -26,7 +26,8 @@ jobs: - run: corepack enable - run: yarn - run: yarn lint - - run: yarn test + - run: yarn test --prod + - run: yarn flow