File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -38,22 +38,24 @@ jobs:
38
38
run : |
39
39
sudo apt-get install g++-12
40
40
echo "CXX=/usr/bin/g++-12" >> "${GITHUB_ENV}"
41
+ - uses : actions/setup-node@v4
42
+ with :
43
+ node-version-file : " package.json"
41
44
# Libusb is a build requirement for the node-hid package and so pnpm
42
45
# install will fail if this isn't in the build environment and if a
43
46
# precompiled binary isn't found.
44
47
- name : Install libusb
45
48
run : sudo apt install -y libusb-1.0-0-dev libudev-dev
46
49
- uses : pnpm/action-setup@v4
47
50
name : Install pnpm
48
- - name : Install prettier globally
49
- run : pnpm install -g prettier@2.7.1
51
+ with :
52
+ run_install : true
50
53
- name : Build and generate IDLs
51
54
run : anchor build
52
55
- name : Copy anchor target files
53
56
run : cp ./target/idl/message_buffer.json idl/ && cp ./target/types/message_buffer.ts idl/
54
- - name : Run prettier (to avoid pre-commit failures)
55
- run : |
56
- pnpm dlx prettier@2.7.1 --write "./idl/*"
57
+ - name : Fix formatting (to avoid pre-commit failures)
58
+ run : pnpm turbo --filter message_buffer fix:format
57
59
- name : Check IDL changes
58
60
# Fails if the IDL files are not up to date. Please use anchor build to regenerate the IDL files for
59
61
# the current version of the contract and update idl directory.
You can’t perform that action at this time.
0 commit comments