From 438226ab0b3f64a3d6ca6d817442cca5921579e2 Mon Sep 17 00:00:00 2001 From: akoidan Date: Wed, 18 Oct 2023 09:57:46 +0200 Subject: [PATCH 01/10] test --- .github/workflows/main.yml | 52 ++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 88bf01e..57b0ad6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,41 +1,39 @@ -# This is a basic workflow to help you get started with Actions +name: Deploy PR previews -name: CI - -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the master branch on: - push: - branches: [ master ] - paths-ignore: - - 'README.md' pull_request: - branches: [ master ] + types: + - opened + - reopened + - synchronize + - closed + + +concurrency: preview-${{ github.ref }} jobs: - # This job is an example of continious integration - # It runs test and lints the code - test: + deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 - - name: Cache multiple paths + node-version: 18 + - name: Cache + id: cache uses: actions/cache@v3 with: path: | node_modules - ~/.cache/Cypress - yarn-cache - key: ${{ runner.os }}-v1-${{ hashFiles('yarn.lock') }} - - name: install npm dependencies - run: yarn config set cache-folder `pwd`/yarn-cache && yarn install --frozen-lockfile - - name: build - run: yarn build:test - - name: test-cypress - run: yarn test:cypress:run - - name: eslint - run: yarn run lint - + ~/.cache/ms-playwright + key: ${{ runner.os }}-v32-${{ hashFiles('yarn.lock') }} + - name: BUild + run: yarn build + env: + VITE_BUILD_ENV: pr + - name: Deploy preview + uses: rossjrw/pr-preview-action@v1 + with: + source-dir: ./dist/ + deploy-repository: akoidan/vue3-vite-vue-class-component + token: ${{ secrets.PR_PAT_TOKEN }} From 182e09fcd82f001333c3c51b910eb7f089f6262f Mon Sep 17 00:00:00 2001 From: akoidan Date: Wed, 18 Oct 2023 09:59:08 +0200 Subject: [PATCH 02/10] s --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 57b0ad6..419e19e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 16 - name: Cache id: cache uses: actions/cache@v3 From 7951e171059f0ddd7457521434bb78a9fa99a3c7 Mon Sep 17 00:00:00 2001 From: akoidan Date: Wed, 18 Oct 2023 10:02:35 +0200 Subject: [PATCH 03/10] test --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 419e19e..d5c1038 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,12 +25,12 @@ jobs: with: path: | node_modules - ~/.cache/ms-playwright key: ${{ runner.os }}-v32-${{ hashFiles('yarn.lock') }} + - name: BUild + if: steps.cache.outputs.cache-hit != 'true' + run: yarn install --frozen-lockfile - name: BUild run: yarn build - env: - VITE_BUILD_ENV: pr - name: Deploy preview uses: rossjrw/pr-preview-action@v1 with: From 033665571fe26c0814d78fe2f10ad829354b18fb Mon Sep 17 00:00:00 2001 From: akoidan Date: Wed, 18 Oct 2023 10:14:18 +0200 Subject: [PATCH 04/10] 1 --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d5c1038..e49a28c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,10 +26,12 @@ jobs: path: | node_modules key: ${{ runner.os }}-v32-${{ hashFiles('yarn.lock') }} - - name: BUild + - name: install deps if: steps.cache.outputs.cache-hit != 'true' run: yarn install --frozen-lockfile - name: BUild + env: + VITE_BUILD_ENV: development run: yarn build - name: Deploy preview uses: rossjrw/pr-preview-action@v1 From c955273f65b16ae1ffa995d692f103546cd08ab8 Mon Sep 17 00:00:00 2001 From: akoidan Date: Wed, 18 Oct 2023 10:25:52 +0200 Subject: [PATCH 05/10] 1 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e49a28c..e1e5e8c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,5 +37,5 @@ jobs: uses: rossjrw/pr-preview-action@v1 with: source-dir: ./dist/ - deploy-repository: akoidan/vue3-vite-vue-class-component + deploy-repository: akoidan/vue3-vite-pr-test token: ${{ secrets.PR_PAT_TOKEN }} From 1d3ec285a9f3ae9fb7862f473fa38684a4ff3890 Mon Sep 17 00:00:00 2001 From: akoidan Date: Wed, 18 Oct 2023 10:34:08 +0200 Subject: [PATCH 06/10] 1 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e1e5e8c..442f66c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,7 +33,7 @@ jobs: env: VITE_BUILD_ENV: development run: yarn build - - name: Deploy preview + - name: Deploy preview1 uses: rossjrw/pr-preview-action@v1 with: source-dir: ./dist/ From 06547a510c6f044eab9730fb972a7e7ee57d8143 Mon Sep 17 00:00:00 2001 From: akoidan Date: Wed, 18 Oct 2023 10:56:35 +0200 Subject: [PATCH 07/10] 1 --- src/vue/app.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vue/app.vue b/src/vue/app.vue index eb6def8..58be744 100644 --- a/src/vue/app.vue +++ b/src/vue/app.vue @@ -20,6 +20,6 @@ export default class App extends Vue { From 12e77dae6a3cfbdda08e79bab5a9e511ce3bb221 Mon Sep 17 00:00:00 2001 From: akoidan Date: Wed, 18 Oct 2023 11:00:46 +0200 Subject: [PATCH 08/10] 1 --- src/vue/app.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vue/app.vue b/src/vue/app.vue index 58be744..0644ec6 100644 --- a/src/vue/app.vue +++ b/src/vue/app.vue @@ -20,6 +20,6 @@ export default class App extends Vue { From 87315c7cbf07597c8f29e0be5ce67faa3c4d1e14 Mon Sep 17 00:00:00 2001 From: akoidan Date: Wed, 18 Oct 2023 11:05:39 +0200 Subject: [PATCH 09/10] 1 --- src/vue/app.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vue/app.vue b/src/vue/app.vue index 0644ec6..e21a47a 100644 --- a/src/vue/app.vue +++ b/src/vue/app.vue @@ -20,6 +20,6 @@ export default class App extends Vue { From bd563853267f5b80bb638684789909466f3ea630 Mon Sep 17 00:00:00 2001 From: akoidan Date: Wed, 18 Oct 2023 11:08:06 +0200 Subject: [PATCH 10/10] 12 --- src/vue/app.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vue/app.vue b/src/vue/app.vue index e21a47a..9be7585 100644 --- a/src/vue/app.vue +++ b/src/vue/app.vue @@ -20,6 +20,6 @@ export default class App extends Vue {