Skip to content
This repository was archived by the owner on Oct 23, 2022. It is now read-only.

Commit 1faa187

Browse files
committed
chore(CI): migrate from Travis CI to GitHub Actions
1 parent af11fdb commit 1faa187

4 files changed

Lines changed: 42 additions & 27 deletions

File tree

.github/workflows/default.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Test and Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
workflow_dispatch:
11+
12+
jobs:
13+
default:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: 14
22+
- name: Install dependencies
23+
run: npm ci
24+
- name: Run tests
25+
run: |
26+
npm test
27+
npm run fmt
28+
- name: Run integration tests
29+
run: |
30+
npm run test:integration
31+
env:
32+
SFDC_SERVER_URL: https://login.salesforce.com
33+
SFDC_USERNAME: ${{ secrets.SFDC_USERNAME }}
34+
SFDC_PASSWORD: ${{ secrets.SFDC_PASSWORD }}
35+
if: ${{ github.event_name == 'push' }}
36+
- name: Release package
37+
run: npx semantic-release
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
14

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> Command line tool supporting the Force.com development lifecycle
44
5-
[![Build Status](https://travis-ci.com/amtrack/force-dev-tool.svg?branch=master)](https://travis-ci.com/amtrack/force-dev-tool)
5+
[![Actions Status](https://github.com/amtrack/force-dev-tool/workflows/Test%20and%20Release/badge.svg)](https://github.com/amtrack/force-dev-tool/actions)
66

77
## Disclaimer
88

0 commit comments

Comments
 (0)