Skip to content

Commit

Permalink
Merge pull request #135 from openzim/kelson42-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
kelson42 authored Jun 24, 2024
2 parents 2c01f2e + d473d4f commit f7ab361
Show file tree
Hide file tree
Showing 4 changed files with 1,016 additions and 1,038 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04, macos-12, macos-13]
node: [18, 20, 21]
node: [18, 20, 22]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

Expand All @@ -31,7 +31,7 @@ jobs:
run: sudo apt install gcc g++ python3-pip libbz2-dev ccache zlib1g-dev uuid-dev

- name: Setup Python 3.11
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'

Expand All @@ -43,10 +43,11 @@ jobs:
run: PATH=$PATH:$HOME/bin

- name: installing dependencies
run: npm i

- name: installing typescript
run: npm i -g typescript
run: |
npm install
npm i -g eslint
npm i -g codecov
npm i -g typescript
- name: running lint
run: npm run lint
Expand All @@ -55,11 +56,11 @@ jobs:
run: npm run test

- name: running codecov
if: ${{ matrix.node == '20' && matrix.os == 'ubuntu-20.04' }}
if: ${{ matrix.node == '20' && matrix.os == 'ubuntu-22.04' }}
run: npm run codecov

- name: codecov action
if: ${{ matrix.node == '20' && matrix.os == 'ubuntu-20.04' }}
uses: codecov/codecov-action@v3
if: ${{ matrix.node == '20' && matrix.os == 'ubuntu-22.04' }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use Node.js 18.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
Expand Down
2 changes: 1 addition & 1 deletion dev/hackPackageVersion.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { writeFileSync } from "fs";
import pkg, { version } from "../package.json";
import pkg from "../package.json";

writeFileSync("./package.json", JSON.stringify(pkg), "utf8");
Loading

0 comments on commit f7ab361

Please sign in to comment.