Skip to content

Commit d598012

Browse files
committed
issue-48: Add Google Earth Engine integration tests with GitHub Actions workflow
1 parent e457588 commit d598012

File tree

4 files changed

+4623
-92
lines changed

4 files changed

+4623
-92
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: GEE JS Integration Tests
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
workflow_dispatch:
8+
9+
jobs:
10+
integration-tests:
11+
runs-on: ubuntu-latest
12+
13+
env:
14+
GEE_PRIVATE_KEY_PATH: ${{ github.workspace }}/privatekey.json
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '20'
24+
25+
- name: Install dependencies
26+
run: npm install
27+
28+
- name: Set up GEE private key
29+
run: |
30+
echo '${{ secrets.EARTHENGINE }}' > privatekey.json
31+
chmod 600 privatekey.json
32+
33+
- name: Run GEE integration tests
34+
run: npm run test:integration

0 commit comments

Comments
 (0)