forked from statsig-io/statsig-server-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjava_check_release_candidate.yml
More file actions
50 lines (45 loc) · 1.62 KB
/
java_check_release_candidate.yml
File metadata and controls
50 lines (45 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Java E2E Test Release Candidate
on:
workflow_dispatch:
# schedule:
# - cron: '0 */3 * * *'
env:
api_key: ${{ secrets.LRS_SERVER_KEY }}
sdk_repo: private-statsig-server-core
jobs:
Test:
if: github.event.repository.private
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
subdir: ['server-core-java-rc']
platform: ['linux/amd64', 'linux/arm64']
base_image: ['alpine', 'amazoncorretto', 'debian', 'openjdk', 'temurin', 'ubuntu', "centos7","amazonlinux2", "amazonlinux2023"]
steps:
- name: Checkout LRS repo
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
with:
repository: statsig-io/long-running-sdk
ref: main
token: ${{ secrets.ROIM }}
- name: Set up QEMU
uses: docker/setup-qemu-action@27d0a4f181a40b142cce983c5393082c365d1480 # v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f211e3e9ded2d9377c8cadc4489a4e38014bc4c9 # v1
- name: Login to DockerHub
uses: docker/login-action@dd4fa0671be5250ee6f50aedf4cb05514abda2c7 # v1
with:
username: statsig
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Node.js
with:
node-version: '23'
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: ls -a && cd ./cli && pnpm install
- name: Build and Test
id: build_script
run: cd ./cli && pnpm tsx script.ts -j "build run" -d ${{matrix.subdir}} -p ${{ matrix.platform }} -b ${{matrix.base_image}}