Skip to content

Commit

Permalink
Run continuous integration on GitHub Actions (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkoops authored Jul 25, 2024
1 parent a1e05a7 commit b81de49
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 22 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Install dependencies
run: npm install

- name: Run build
run: npm run build

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Install dependencies
run: npm install

- name: Run linter
run: npm run lint

test:
name: Test on Node.js ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node: [6, 8, 10, 12, 14, 16, 18, 20, 22]
steps:
- name: Check out repository
uses: actions/checkout@v4

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

- name: Install dependencies
run: npm install

- name: Run tests
run: npm run unit
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.travis.yml
.github/
bench/
test/
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

`base64-js` does basic base64 encoding/decoding in pure JS.

[![build status](https://secure.travis-ci.org/beatgammit/base64-js.png)](http://travis-ci.org/beatgammit/base64-js)
[![CI](https://github.com/feross/base64-js/actions/workflows/main.yml/badge.svg)](https://github.com/feross/base64-js/actions/workflows/main.yml)

Many browsers already have base64 encoding/decoding functionality, but it is for text data, not all-purpose binary data.

Expand Down

0 comments on commit b81de49

Please sign in to comment.