Skip to content

Commit

Permalink
Merge pull request #31 from catdad-experiments/#30-github-actions
Browse files Browse the repository at this point in the history
moving CI to GitHub Actions
  • Loading branch information
catdad authored Nov 9, 2023
2 parents 28b8859 + c78e625 commit 18ee7d5
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 30 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
push:
pull_request:
branches: [ master ]

env:
FORCE_COLOR: 1

jobs:
test:
runs-on: ubuntu-latest
name: test with node ${{ matrix.node-version }}
strategy:
matrix:
node-version: [12, 14, 16, 18, 20]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
- name: Inspect tarball
run: npm pack --dry-run

publish:
needs: test
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm publish --loglevel verbose
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

> Convert HEIC/HEIF images to JPEG and PNG
[![travis][travis.svg]][travis.link]
[![ci][ci.svg]][ci.link]
[![npm-downloads][npm-downloads.svg]][npm.link]
[![npm-version][npm-version.svg]][npm.link]

[travis.svg]: https://travis-ci.com/catdad-experiments/heic-convert.svg?branch=master
[travis.link]: https://travis-ci.com/catdad-experiments/heic-convert
[ci.svg]: https://github.com/catdad-experiments/heic-convert/actions/workflows/ci.yml/badge.svg
[ci.link]: https://github.com/catdad-experiments/heic-convert/actions/workflows/ci.yml
[npm-downloads.svg]: https://img.shields.io/npm/dm/heic-convert.svg
[npm.link]: https://www.npmjs.com/package/heic-convert
[npm-version.svg]: https://img.shields.io/npm/v/heic-convert.svg
Expand Down

0 comments on commit 18ee7d5

Please sign in to comment.