Skip to content

Commit

Permalink
feat: replace Travis-CI with GitHub Actions (#77)
Browse files Browse the repository at this point in the history
* feat: Switch to GitHub Actions

* chore: Remove Travis as CI

* chore: Run it on any push or PR

* fix: Wrap node versions in strings
  • Loading branch information
phated committed Oct 10, 2022
1 parent df4deb6 commit 08ab6a5
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 8 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI
on: [pull_request, push]
env:
CI: true

jobs:
test:
name: Tests for Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node: ["0.10", "0.12", "4", "6", "8", "10", "12", "14", "16", "18"]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- name: Clone repository
uses: actions/checkout@v3

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

- run: node --version
- run: npm --version

- name: Install npm dependencies
run: npm install

- name: Run tests
run: npm test
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# convert-source-map [![build status](https://secure.travis-ci.org/thlorenz/convert-source-map.svg?branch=master)](http://travis-ci.org/thlorenz/convert-source-map)
# convert-source-map [![Build Status][ci-image]][ci-url]

Converts a source-map from/to different formats and allows adding/changing properties.

Expand Down Expand Up @@ -118,3 +118,6 @@ Returns a comment that links to an external source map via `file`.
By default, the comment is formatted like: `//# sourceMappingURL=...`, which you would normally see in a JS source file.

When `options.multiline == true`, the comment is formatted like: `/*# sourceMappingURL=... */`, which you would find in a CSS source file.

[ci-url]: https://github.com/gulpjs/vinyl-sourcemap/actions?query=workflow:ci
[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/vinyl-sourcemap/ci?style=flat-square

0 comments on commit 08ab6a5

Please sign in to comment.