From b08afff627310eb19c19f05c00bf6c30c8cdd829 Mon Sep 17 00:00:00 2001 From: Jacob Filik Date: Mon, 4 Mar 2024 14:12:44 +0000 Subject: [PATCH 1/4] add ci for frontend --- .github/workflows/ci-frontend.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/ci-frontend.yml diff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.yml new file mode 100644 index 0000000..b570b0f --- /dev/null +++ b/.github/workflows/ci-frontend.yml @@ -0,0 +1,23 @@ +name: pnpm Example Workflow +on: + push: +jobs: + build: + runs-on: ubuntu-20.04 + strategy: + matrix: + node-version: [15] + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v3 + with: + version: 8 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'pnpm' + - name: Install dependencies + run: pnpm install --frozen-lockfile + - name: Run test + run: pnpm test From 8ee52d6e7d946a2e6b972cf0bbedf115486c519d Mon Sep 17 00:00:00 2001 From: Jacob Filik Date: Mon, 4 Mar 2024 14:15:14 +0000 Subject: [PATCH 2/4] add workspace --- .github/workflows/ci-frontend.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.yml index b570b0f..aa259c2 100644 --- a/.github/workflows/ci-frontend.yml +++ b/.github/workflows/ci-frontend.yml @@ -1,9 +1,17 @@ -name: pnpm Example Workflow +name: frontend ci + on: push: + branches: [ main ] + pull_request: + branches: [ main ] + jobs: build: runs-on: ubuntu-20.04 + defaults: + run: + working-directory: ./xas-standards-client strategy: matrix: node-version: [15] From 4c801eb074798d869c832111c4fe013cd5d13a1a Mon Sep 17 00:00:00 2001 From: Jacob Filik Date: Mon, 4 Mar 2024 14:17:12 +0000 Subject: [PATCH 3/4] increase node version --- .github/workflows/ci-frontend.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.yml index aa259c2..1a4e2ea 100644 --- a/.github/workflows/ci-frontend.yml +++ b/.github/workflows/ci-frontend.yml @@ -14,7 +14,7 @@ jobs: working-directory: ./xas-standards-client strategy: matrix: - node-version: [15] + node-version: [18] steps: - uses: actions/checkout@v3 - uses: pnpm/action-setup@v3 From 36b7f6fd662e1ea81455343ff27874527eac79c7 Mon Sep 17 00:00:00 2001 From: Jacob Filik Date: Mon, 4 Mar 2024 14:25:46 +0000 Subject: [PATCH 4/4] try to get workspace working --- .github/workflows/ci-frontend.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.yml index 1a4e2ea..1871374 100644 --- a/.github/workflows/ci-frontend.yml +++ b/.github/workflows/ci-frontend.yml @@ -25,6 +25,7 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'pnpm' + cache-dependency-path: '**/pnpm-lock.yaml' - name: Install dependencies run: pnpm install --frozen-lockfile - name: Run test