Skip to content

Commit ee89d22

Browse files
committed
fix: Run apt command as sudo
1 parent 048a5c4 commit ee89d22

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/build_test.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,10 @@ jobs:
3838
toolchain: stable
3939
override: true
4040
components: rustfmt, clippy
41-
- run: apt install build-essential bison flex clang protobuf-compiler -y
42-
- name: Create user
43-
run: |
44-
useradd -m test_user
45-
- run: sudo -u test_user cargo install cargo-pgrx --version 0.16.0
46-
- run: sudo -u test_user cargo pgrx init
47-
- run: sudo -u test_user cargo build --verbose
48-
- run: sudo -u test_user cargo test --verbose
41+
- run: sudo apt install build-essential bison flex clang protobuf-compiler -y
42+
- run: cargo install cargo-pgrx --version 0.16.0
43+
- run: cargo pgrx init
44+
- run: cargo build --verbose
45+
- run: cargo test --verbose
4946

5047

0 commit comments

Comments
 (0)