-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 1.07 KB
/
Copy pathci.yml
File metadata and controls
38 lines (32 loc) · 1.07 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
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate YAML files
run: |
ruby -e "require 'yaml'; YAML.load_file('action.yml'); puts 'action.yml OK'"
ruby -e "require 'yaml'; YAML.load_file('.github/workflows/ci.yml'); puts 'ci.yml OK'"
ruby -e "require 'yaml'; YAML.load_file('.github/workflows/move-major-tag.yml'); puts 'move-major-tag.yml OK'"
ruby -e "require 'yaml'; YAML.load_file('examples/consumer-workflow.yml'); puts 'example workflow OK'"
- name: Validate action contract
run: |
grep -q '^name:' action.yml
grep -q '^runs:' action.yml
grep -q 'using: composite' action.yml
smoke-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run local action smoke test
uses: ./
with:
sdk_version: "3.5.13"
network: testnet
command: python -c "import ratio1; print('ratio1 smoke test ok')"