-
Notifications
You must be signed in to change notification settings - Fork 255
Expand file tree
/
Copy pathaction.yaml
More file actions
63 lines (62 loc) · 2.23 KB
/
action.yaml
File metadata and controls
63 lines (62 loc) · 2.23 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
51
52
53
54
55
56
57
58
59
60
61
62
63
---
name: "Setup CI environment"
description: "Setup Cloudserver CI environment"
runs:
using: composite
steps:
- name: Setup etc/hosts
shell: bash
run: |
sudo echo "127.0.0.1 bucketwebsitetester.s3-website-us-east-1.amazonaws.com" | sudo tee -a /etc/hosts
sudo echo "127.0.0.1 bucketwebsitetester.s3-website-us-east-1.scality.com" | sudo tee -a /etc/hosts
sudo echo "127.0.0.1 pykmip.local" | sudo tee -a /etc/hosts
for i in `seq 1 50`; do sudo echo "127.0.0.$i $i.pykmip.local" | sudo tee -a /etc/hosts ; done
- name: Setup Credentials
shell: bash
run: bash .github/scripts/credentials.bash
- name: Setup job artifacts directory
shell: bash
run: |-
set -exu;
mkdir -p /tmp/artifacts/${JOB_NAME}/;
- name: Setup coverage directory
shell: bash
run: |-
set -exu;
mkdir -p /tmp/coverage/${JOB_NAME}/;
- uses: actions/setup-node@v6
with:
node-version: '22'
cache: 'yarn'
- name: install typescript
shell: bash
run: yarn global add typescript@4.9.5
- name: install dependencies
shell: bash
run: yarn install --ignore-engines --frozen-lockfile --network-concurrency 1
- uses: actions/cache@v5
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip
- uses: actions/setup-python@v6
with:
python-version: 3.9
- name: Setup python2 test environment
shell: bash
run: |
sudo apt-get install -y libdigest-hmac-perl
pip install 's3cmd==2.3.0'
- name: enable rate limiting in config and set the lisa account as the service user
shell: bash
run: |
cat config.json | jq -r '.rateLimiting = {enabled: true, nodes: 6, serviceUserArn: "arn:aws:iam::123456789013:root"}' > config.json.new
mv config.json.new config.json
- name: Collect Workflow Telemetry
# uses: catchpoint/workflow-telemetry-action@v2
# Use a fork that fixes chart issue
# https://github.com/catchpoint/workflow-telemetry-action/pull/98
uses: whywaita/workflow-telemetry-action@9861d94d4f5862a5b8c5e863cf9a156a1b950738
with:
theme: dark
comment_on_pr: false
proc_trace_chart_show: false