Skip to content

Commit

Permalink
fix: permissions in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
austbot committed Oct 31, 2024
1 parent 83e2998 commit 0a3c0c8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 1 addition & 3 deletions .github/docker/Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,9 @@ ENV CARGO_HOME=/usr/local/cargo
ENV RUSTUP_HOME=/usr/local/rustup
ENV PATH=${PATH}:/usr/local/cargo/bin:/go/bin:/home/${USER}/.local/share/solana/install/releases/${SOLANA}/bin

# Set user and working directory
# Set working directory
ARG PACKAGE=bonsol
WORKDIR /workspaces/${PACKAGE}
USER solana

# Install Rust components
RUN rustup component add \
clippy
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/pr-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
branches:
- main
jobs:
lint:
lint:
name: Lint
runs-on: ubuntu-latest
container:
image: ghcr.io/anagrambuild/bonsol-ci-env:latest
Expand All @@ -18,6 +19,7 @@ jobs:
# - name: Check Clippy
# uses: ./.github/tasks/check-clippy
build:
name: Check
runs-on: ubuntu-latest
container:
image: ghcr.io/anagrambuild/bonsol-ci-env:latest
Expand All @@ -27,8 +29,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: cargo build -p bonsol-cli
run: cargo check
test:
name: Unit Test
runs-on: ubuntu-latest
container:
image: ghcr.io/anagrambuild/bonsol-ci-env:latest
Expand All @@ -40,7 +43,7 @@ jobs:
- name: Test
run: cargo test
e2e-test:

name: E2E Test
runs-on: ubuntu-latest
container:
image: ghcr.io/anagrambuild/bonsol-ci-env:latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-cachix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ jobs:
with:
name: bonsol
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
run: nix flake check
run: nix develop
- run: nix flake check
- run: nix develop

0 comments on commit 0a3c0c8

Please sign in to comment.