Skip to content

Commit

Permalink
ci: update actions version
Browse files Browse the repository at this point in the history
  • Loading branch information
jlozovei committed Jan 3, 2024
1 parent 38ba73c commit 7604290
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 13 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,43 @@ on:
jobs:
test:
name: Test code
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 12
node-version: 18.16.0
cache: 'npm'

- name: Install dependencies
run: npm install

- name: Test code
run: npm run test

release:
name: Semantic Release
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 12
node-version: 18.16.0
cache: 'npm'

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,25 @@ on:
jobs:
test:
name: Test code
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 12
node-version: 18.16.0
cache: 'npm'

- name: Install dependencies
run: npm install

- name: Test code
run: npm run test

- name: Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
Expand Down

0 comments on commit 7604290

Please sign in to comment.