This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
80 lines (66 loc) · 2.31 KB
/
main.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
71
72
73
74
75
76
77
78
79
80
# This is a basic workflow to help you get started with Actions
name: Continuous integration
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request_target:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
# - name: Get yarn cache directory path
# id: yarn-cache-dir-path
# run: echo "::set-output name=dir::$(yarn cache dir)"
# - name: Cache yarn cache
# uses: actions/cache@v2
# id: cache-yarn-cache
# with:
# path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-yarn-
# - name: Cache node_modules
# id: cache-node-modules
# uses: actions/cache@v2
# with:
# path: node_modules
# key: ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-${{ hashFiles('**/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-
- name: Install modules
run: |
# make file runnable, might not be necessary
chmod +x "${GITHUB_WORKSPACE}/install.sh"
# run script
"${GITHUB_WORKSPACE}/install.sh"
# if: |
# steps.cache-yarn-cache.outputs.cache-hit != 'true' ||
# steps.cache-node-modules.outputs.cache-hit != 'true'
- name: "Check contracts"
uses: docker://hirosystems/clarinet:latest
with:
entrypoint: "bash"
args: -c "cd packages/clarity && clarinet check"
- name: "Run test suite"
run: yarn test:reports
# - name: Run unit tests
# run: yarn ci-unit-tests
# - name: Format
# run: yarn format
# - name: Commit changes
# uses: stefanzweifel/git-auto-commit-action@v4.15.0
# with:
# commit_message: "style(formatting): apply formatting changes"
# branch: ${{ github.head_ref }}