Skip to content

Commit

Permalink
Merge pull request #119 from Discookie/ericsson/fix-deploy
Browse files Browse the repository at this point in the history
Fix Deploy action
  • Loading branch information
vodorok authored Nov 4, 2022
2 parents 00b1a8d + 0501ac8 commit 0044458
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
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/[email protected]
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

0 comments on commit 0044458

Please sign in to comment.