diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3495fa8..acf52a9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,9 +6,12 @@ on: types: [published] jobs: + test: + uses: ./.github/workflows/test.yml build: name: Create extension - runs-on: ubuntu-18.04 + runs-on: ubuntu-22.04 + needs: [test] # Each registry should have the following fields: # - name: unique extension id. @@ -29,21 +32,16 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install Node.js uses: actions/setup-node@v1 with: - node-version: 12.x + node-version: 16.x - name: Install dependencies run: yarn install --frozen-lockfile - - name: Run tests - uses: GabrielBB/xvfb-action@v1.0 - with: - run: yarn run test - - name: Get the version id: get_version run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f1d0473..1d177a3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,14 +1,14 @@ name: codechecker-vscodeplugin-tests # Triggers the workflow on push or pull request events. -on: [push, pull_request] +on: [push, pull_request, workflow_call] jobs: test: name: Tests - runs-on: ubuntu-18.04 + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install dependencies run: yarn install --frozen-lockfile - name: Install CodeChecker @@ -18,6 +18,6 @@ jobs: sudo snap alias codechecker CodeChecker CodeChecker version - name: Run tests - uses: GabrielBB/xvfb-action@v1.0 + uses: GabrielBB/xvfb-action@v1.6 with: run: yarn run test