Skip to content

Commit

Permalink
Replaced Travis-CI with Github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxy committed Mar 1, 2024
1 parent 9c8ec3e commit 15f1efe
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 16 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
environment: ci
strategy:
matrix:
firefox-version: ['latest']
node-version: ['20.x', '21.x']
steps:
- uses: actions/checkout@v4

# libEGL
- name: Install libEGL dependency
run: sudo apt-get install -y libegl1

# Firefox browser.
- name: Setup Firefox ${{ matrix.firefox-version }}
id: setup-firefox
uses: browser-actions/setup-firefox@v1
with:
firefox-version: ${{ matrix.firefox-version }}

# Node.js environment
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install NPM dependencies
run: npm ci
- name: Run Webpack
run: npm run build
- name: Run ESLint
run: npm run lint
- name: Run WDIO
uses: coactions/setup-xvfb@v1
with:
run: npm run test
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.babelrc
.eslintrc
.travis.yml
.github
.vscode
ISSUE_TEMPLATE.md
package.*
Expand Down
14 changes: 0 additions & 14 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
@@ -1,6 +1,6 @@
# Scroll Target Trigger

[![npm version](https://badge.fury.io/js/scroll-target-trigger.svg)](https://badge.fury.io/js/scroll-target-trigger) [![](https://img.shields.io/npm/dm/scroll-target-trigger)](https://www.npmjs.com/package/scroll-target-trigger) [![Build Status](https://api.travis-ci.com/nuxy/scroll-target-trigger.svg?branch=master)](https://app.travis-ci.com/github/nuxy/scroll-target-trigger) [![Install size](https://packagephobia.com/badge?p=scroll-target-trigger)](https://packagephobia.com/result?p=scroll-target-trigger) [![](https://img.shields.io/github/v/release/nuxy/scroll-target-trigger)](https://github.com/nuxy/scroll-target-trigger/releases)
[![npm version](https://badge.fury.io/js/scroll-target-trigger.svg)](https://badge.fury.io/js/scroll-target-trigger) [![](https://img.shields.io/npm/dm/scroll-target-trigger)](https://www.npmjs.com/package/scroll-target-trigger) [![Build Status](https://img.shields.io/github/actions/workflow/status/nuxy/scroll-target-trigger/.github%2Fworkflows%2Fci.yml)](https://github.com/nuxy/scroll-target-trigger/actions) [![Install size](https://packagephobia.com/badge?p=scroll-target-trigger)](https://packagephobia.com/result?p=scroll-target-trigger) [![](https://img.shields.io/github/v/release/nuxy/scroll-target-trigger)](https://github.com/nuxy/scroll-target-trigger/releases)

Lightweight, dependency free, scroll event methods.

Expand Down

0 comments on commit 15f1efe

Please sign in to comment.