Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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/}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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