From 0e2d0e32abd495968375da3ad1aeb70ad966f407 Mon Sep 17 00:00:00 2001 From: Traines Date: Tue, 17 Dec 2024 20:26:12 +0000 Subject: [PATCH] fix ci --- .github/workflows/test.yml | 100 ++++++++++++++++++------------------- package.json | 8 ++- 2 files changed, 57 insertions(+), 51 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 35448879..1ef0b1b3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,53 +34,53 @@ jobs: - run: npm run lint - run: npm run test-unit -# integration-tests: -# runs-on: ubuntu-latest -# strategy: -# matrix: -# node-version: -# - 16.x -# - 18.x -# - 20.x -# - 22.x -# steps: -# - name: checkout -# uses: actions/checkout@v4 -# - name: setup Node.js v${{ matrix.node-version }} -# uses: actions/setup-node@v4 -# with: -# node-version: ${{ matrix.node-version }} -# -# - id: cache-npm -# name: restore npm cache -# uses: actions/cache@v3 -# with: -# key: npm-cache-${{ github.ref_name }} -# path: ${{ env.npm_config_cache }} -# - run: npm install -# -# - run: npm run test-integration -# -# e2e-tests: -# needs: [unit-tests, integration-tests] -# runs-on: ubuntu-latest -# strategy: -# matrix: -# node-version: [16.x] -# steps: -# - name: checkout -# uses: actions/checkout@v4 -# - name: setup Node.js v${{ matrix.node-version }} -# uses: actions/setup-node@v4 -# with: -# node-version: ${{ matrix.node-version }} -# -# - id: cache-npm -# name: restore npm cache -# uses: actions/cache@v3 -# with: -# key: npm-cache-${{ github.ref_name }} -# path: ${{ env.npm_config_cache }} -# - run: npm install -# -# - run: npm run test-e2e + integration-tests: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: + - 16.x + - 18.x + - 20.x + - 22.x + steps: + - name: checkout + uses: actions/checkout@v4 + - name: setup Node.js v${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + - id: cache-npm + name: restore npm cache + uses: actions/cache@v3 + with: + key: npm-cache-${{ github.ref_name }} + path: ${{ env.npm_config_cache }} + - run: npm install + + - run: npm run test-integration + + e2e-tests: + needs: [unit-tests, integration-tests] + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [16.x] + steps: + - name: checkout + uses: actions/checkout@v4 + - name: setup Node.js v${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + - id: cache-npm + name: restore npm cache + uses: actions/cache@v3 + with: + key: npm-cache-${{ github.ref_name }} + path: ${{ env.npm_config_cache }} + - run: npm install + + - run: npm run test-e2e diff --git a/package.json b/package.json index c21caca7..8f997165 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,10 @@ "1Maxnet1" ], "homepage": "https://github.com/public-transport/db-vendo-client", - "repository": "public-transport/db-vendo-client", + "repository": { + "type": "git", + "url": "git+https://github.com/public-transport/db-vendo-client.git" + }, "bugs": "https://github.com/public-transport/db-vendo-client/issues", "funding": { "url": "https://github.com/sponsors/derhuerst" @@ -102,5 +105,8 @@ "!@tapjs/intercept", "!@tapjs/fixture" ] + }, + "publishConfig": { + "registry": "https://npm.pkg.github.com/" } }