Skip to content

Commit

Permalink
feat: support Expo Application Services (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
brentvatne authored Nov 24, 2021
1 parent c4f1553 commit d68dadb
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Master

- support Expo Application Services ([#70](https://github.com/watson/ci-info/pull/70))

## v3.2.0

- support LayerCI ([#68](https://github.com/watson/ci-info/pull/68))
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Officially supported CI servers:
| [Codeship](https://codeship.com) | `ci.CODESHIP` | 🚫 |
| [Drone](https://drone.io) | `ci.DRONE` ||
| [dsari](https://github.com/rfinnie/dsari) | `ci.DSARI` | 🚫 |
| [Expo Application Services](https://expo.dev/eas) | `ci.EAS_BUILD` | 🚫 |
| [GitHub Actions](https://github.com/features/actions/) | `ci.GITHUB_ACTIONS` ||
| [GitLab CI](https://about.gitlab.com/gitlab-ci/) | `ci.GITLAB` ||
| [GoCD](https://www.go.cd/) | `ci.GOCD` | 🚫 |
Expand Down
17 changes: 17 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,23 @@ test('Nevercode - Not PR', function (t) {
t.end()
})

test('Expo Application Services', function (t) {
process.env.EAS_BUILD = '1'

clearModule('./')
const ci = require('./')

t.equal(ci.isCI, true)
t.equal(ci.isPR, null)
t.equal(ci.name, 'Expo Application Services')
t.equal(ci.EAS, true)
assertVendorConstants('EAS', ci, t)

delete process.env.EAS_BUILD

t.end()
})

test('GitHub Actions - PR', function (t) {
process.env.GITHUB_ACTIONS = 'true'
process.env.GITHUB_EVENT_NAME = 'pull_request'
Expand Down
5 changes: 5 additions & 0 deletions vendors.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@
"constant": "DSARI",
"env": "DSARI"
},
{
"name": "Expo Application Services",
"constant": "EAS",
"env": "EAS_BUILD"
},
{
"name": "GitHub Actions",
"constant": "GITHUB_ACTIONS",
Expand Down

0 comments on commit d68dadb

Please sign in to comment.