Skip to content

Commit

Permalink
workflows updated to install missing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
razz1k committed May 23, 2024
1 parent f3a274b commit 9fd9f7e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Install dependencies
run: npm install
run: |
sudo apt update
sudo apt install -y libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev librsvg2-dev
npm install
- name: Run test
run: npm test
env:
Expand All @@ -21,7 +24,10 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Install dependencies
run: npm install
run: |
sudo apt update
sudo apt install -y libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev librsvg2-dev
npm install
- name: Run linters
run: npm run lint
publish:
Expand All @@ -30,10 +36,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev librsvg2-dev
- run: npm install
- run: npm publish --access public
env:
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Install dependencies
run: npm install
run: |
sudo apt update
sudo apt install -y libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev librsvg2-dev
npm install
- name: Run test
run: npm test
env:
Expand All @@ -21,7 +24,10 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Install dependencies
run: npm install
run: |
sudo apt update
sudo apt install -y libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev librsvg2-dev
npm install
- name: Run linters
run: npm run lint
notify-failure:
Expand Down

0 comments on commit 9fd9f7e

Please sign in to comment.