@@ -23,64 +23,56 @@ defaults:
23
23
working-directory : smart-contract-verifier
24
24
25
25
jobs :
26
- test :
27
- name : Unit, doc and integration tests
28
- runs-on : ubuntu-latest
29
- steps :
30
- - name : Checkout sources
31
- uses : actions/checkout@v4
26
+ # test:
27
+ # name: Unit, doc and integration tests
28
+ # runs-on: ubuntu-latest
29
+ # steps:
30
+ # - name: Checkout sources
31
+ # uses: actions/checkout@v4
32
+ #
33
+ # - name: Setup
34
+ # uses: ./.github/actions/setup
35
+ # with:
36
+ # working-directory: smart-contract-verifier
37
+ #
38
+ # - name: Unit tests
39
+ # run: RUST_BACKTRACE=1 RUST_LOG=info cargo test --locked --workspace --all-features --lib --bins -- --nocapture
40
+ # if: success() || failure()
41
+ #
42
+ # - name: Doc tests
43
+ # run: RUST_BACKTRACE=1 RUST_LOG=info cargo test --locked --workspace --all-features --doc -- --skip proto
44
+ # if: success() || failure()
45
+ #
46
+ # - name: Integration tests
47
+ # run: RUST_BACKTRACE=1 RUST_LOG=info cargo test --locked --workspace --test '*' -- --nocapture
48
+ # if: success() || failure()
49
+ #
50
+ # lint:
51
+ # name: Linting
52
+ # uses: ./.github/workflows/_linting.yml
53
+ # with:
54
+ # working-directory: smart-contract-verifier
55
+ #
56
+ # docker:
57
+ # name: Docker build and docker push
58
+ # needs:
59
+ # - test
60
+ # - lint
61
+ # if: |
62
+ # always() &&
63
+ # (needs.test.result == 'success' || needs.test.result == 'cancelled') &&
64
+ # (needs.lint.result == 'success' || needs.lint.result == 'cancelled')
65
+ # uses: ./.github/workflows/_docker-build-push.yml
66
+ # with:
67
+ # service-name: smart-contract-verifier
32
68
33
- - name : Setup
34
- uses : ./.github/actions/setup
35
- with :
36
- working-directory : smart-contract-verifier
37
-
38
- - name : Unit tests
39
- run : RUST_BACKTRACE=1 RUST_LOG=info cargo test --locked --workspace --all-features --lib --bins -- --nocapture
40
- if : success() || failure()
41
-
42
- - name : Doc tests
43
- run : RUST_BACKTRACE=1 RUST_LOG=info cargo test --locked --workspace --all-features --doc -- --skip proto
44
- if : success() || failure()
45
-
46
- - name : Integration tests
47
- run : RUST_BACKTRACE=1 RUST_LOG=info cargo test --locked --workspace --test '*' -- --nocapture
48
- if : success() || failure()
49
-
50
- lint :
51
- name : Linting
52
- uses : ./.github/workflows/_linting.yml
69
+ push-swagger :
70
+ # if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags'))
71
+ uses : ./.github/workflows/_push_swagger.yml
53
72
with :
54
- working-directory : smart-contract-verifier
55
-
56
- docker :
57
- name : Docker build and docker push
58
- needs :
59
- - test
60
- - lint
61
- if : |
62
- always() &&
63
- (needs.test.result == 'success' || needs.test.result == 'cancelled') &&
64
- (needs.lint.result == 'success' || needs.lint.result == 'cancelled')
65
- uses : ./.github/workflows/_docker-build-push.yml
66
- with :
67
- service-name : smart-contract-verifier
68
-
69
- copy-swagger :
70
- name : Copy swagger
71
- runs-on : ubuntu-latest
72
- steps :
73
- - name : Checkout
74
- uses : actions/checkout@v4
75
-
76
- - name : Pushes
77
- uses : dmnemec/copy_file_to_another_repo_action@main
78
- env :
79
- API_TOKEN_GITHUB : ${{ secrets.API_TOKEN_GITHUB }}
80
- with :
81
- source_file : ' smart-contract-verifier/smart-contract-verifier-proto/swagger/v2/smart-contract-verifier.swagger.yaml'
82
- destination_repo : ' blockscout/swaggers'
83
- destination_folder : ' services/smart-contract-verifier'
84
-
85
- user_name : ' rimrakhimov'
86
- destination_branch : ' master'
73
+ user_name : ' blockscout-bot'
74
+
75
+ service_name : ' smart-contract-verifier'
76
+ swagger_path : ' smart-contract-verifier/smart-contract-verifier-proto/swagger/v2/smart-contract-verifier.swagger.yaml'
77
+ secrets :
78
+ api_token_github : ${{ secrets.BLOCKSCOUT_BOT_TOKEN }}
0 commit comments