Skip to content

Commit 71d7243

Browse files
committed
migrate to GH Actions from Travis CI
1 parent 99782c9 commit 71d7243

File tree

3 files changed

+52
-30
lines changed

3 files changed

+52
-30
lines changed

.github/workflows/main.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build & release
2+
on:
3+
push:
4+
branches:
5+
- 'main'
6+
pull_request:
7+
branches:
8+
- 'main'
9+
workflow_dispatch:
10+
11+
jobs:
12+
build-release:
13+
name: Build and release the Electron App
14+
15+
runs-on: ${{ matrix.os }}
16+
17+
strategy:
18+
matrix:
19+
os: [ macos-latest, ubuntu-latest ]
20+
21+
steps:
22+
- name: Check out Git repository
23+
uses: actions/checkout@v2
24+
25+
- name: Install Node.js, NPM and Yarn
26+
uses: actions/setup-node@v2
27+
with:
28+
node-version: 16
29+
cache: 'npm'
30+
31+
- name: Build
32+
run: |
33+
npm install -g codecov
34+
npm install
35+
npm run build
36+
npm run test
37+
codecov
38+
npm run dist
39+
40+
- name: Distribute Mac OS X and Windows binaries
41+
if: ${{ matrix.os == 'macos-latest' }}
42+
run: |
43+
npm run dist -- --mac --win
44+
45+
- name: Distribute Linux binaries
46+
if: ${{ matrix.os == 'ubuntu-latest' }}
47+
run: |
48+
npm run dist

.travis.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Simply generates an array of items from the rows of an Excel file and does the r
66
recursively till every item of the array is processed. For example downloads all the URL's in an Excel file.
77

88
[![Dependency Status][dependabot-badge]][dependabot-url]
9-
[![Build Status][travis-image]][travis-url]
9+
[![Build Status][gh-actions-image]][gh-actions-url]
1010
[![Github Tag][github-tag-image]][github-tag-url]
1111
[![codecov][codecov-image]][codecov-url]
1212
[![Backers on Open Collective](https://opencollective.com/excel-parser-processor/backers/badge.svg)](#backers)
@@ -71,7 +71,7 @@ $ npm run dist
7171

7272
This will add binaries under `/release` folder on your project folder.
7373

74-
`/release` folder is ignored at the repository. Travis will be building the binaries after your branch is merged with master.
74+
`/release` folder is ignored at the repository. Github Actions will be building the binaries after your branch is merged with master.
7575

7676
## Contributors
7777

@@ -109,8 +109,8 @@ MIT © [Burak Targaç](https://github.com/btargac)
109109
[dependabot-badge]: https://badgen.net/github/dependabot/btargac/excel-parser-processor?icon=dependabot
110110
[dependabot-url]: https://github.com/btargac/excel-parser-processor/security/dependabot
111111

112-
[travis-image]: https://travis-ci.org/btargac/excel-parser-processor.svg?branch=master
113-
[travis-url]: https://travis-ci.org/btargac/excel-parser-processor
112+
[gh-actions-image]: https://github.com/btargac/excel-parser-processor/actions/workflows/main.yml/badge.svg?branch=master
113+
[gh-actions-url]: https://github.com/btargac/excel-parser-processor/actions/workflows/main.yml
114114

115115
[github-tag-image]: https://img.shields.io/github/tag/btargac/excel-parser-processor.svg
116116
[github-tag-url]: https://github.com/btargac/excel-parser-processor/releases/latest

0 commit comments

Comments
 (0)