-
-
Notifications
You must be signed in to change notification settings - Fork 3
70 lines (68 loc) · 2.25 KB
/
ci.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
set-safe-directory: false
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
pipeline: rust
args: build --release
engine-version: 0.4.0
- name: Run Build and e2e tests
run: |
export PATH=${HOME}/.cargo/bin:${PATH}
ls -ltr ../target
rm -rf ../target/release/build target/release/deps target/release/examples target/release/incremental
sudo cp ../target/release/fluentci-engine $HOME/.local/bin
fluentci-engine run -- deno run -A ../.fluentci/e2e.ts
working-directory: fixtures
env:
FLUENTCI_CACHE_CDN_ENDPOINT: https://cache.fluentci.io
FLUENTCI_CACHE_S3_ENDPOINT: https://fe5b1e2ce9f94f4c0415ab94ce402012.r2.cloudflarestorage.com
FLUENTCI_CACHE_S3_BUCKET: cache
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
HONEYCOMB_API_KEY: ${{ secrets.HONEYCOMB_API_KEY }}
HONEYCOMB_DATASET: fluentci-engine
OTEL_EXPORTER_OTLP_ENDPOINT: https://api.honeycomb.io
BASELIME_API_KEY: ${{ secrets.BASELIME_API_KEY }}
publish:
needs: tests
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.41
- name: Publish package
run: deno publish --allow-slow-types
working-directory: ./sdk/typescript