forked from elasticsearch-dump/elasticsearch-dump
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrating from travis to github actions (elasticsearch-dump#894)
migrating from travis to github actions
- Loading branch information
1 parent
ae12778
commit 6f30a2b
Showing
3 changed files
with
62 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
# | ||
# ES_VERSION=${1} | ||
ES_FLAGS= | ||
echo "running es-version ${ES_VERSION}" | ||
if [ "${ES_VERSION}" == "7.0.0" ]; then | ||
ES_DOWNLOAD_URL="https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}-linux-x86_64.tar.gz" | ||
ES_FLAGS="-Ediscovery.type=single-node" | ||
else | ||
ES_DOWNLOAD_URL="https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz" | ||
fi | ||
|
||
|
||
echo "url ${ES_DOWNLOAD_URL}" | ||
|
||
## ES has different download locations for each version, so we'll download them both and then just use the one we want | ||
curl -Lo elasticsearch.tar.gz "${ES_DOWNLOAD_URL}" | ||
|
||
## Now, use the ENV to choose the version | ||
tar -xzf elasticsearch.tar.gz | ||
|
||
export ES_JAVA_OPTS="-Xms512m -Xmx512m" | ||
./elasticsearch-${ES_VERSION}/bin/elasticsearch ${ES_FLAGS} & | ||
|
||
# ES needs some time to start | ||
wget -q --waitretry=1 --retry-connrefused -T 240 -O - http://127.0.0.1:9200 | ||
|
||
npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Node CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
es-version: | ||
# - "1.5.0" | ||
# - "2.3.4" | ||
# - "5.6.4" | ||
# - "6.0.0" | ||
- "7.0.0" | ||
node-version: | ||
- 10.x | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' # See 'Supported distributions' for available options | ||
java-version: '8' | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm install | ||
- name: Run build script | ||
env: | ||
ES_VERSION: ${{ matrix.es-version }} | ||
run: ./.github/scripts/build.sh | ||
shell: bash |
This file was deleted.
Oops, something went wrong.