Skip to content

Commit

Permalink
Change ownership of the root repository
Browse files Browse the repository at this point in the history
  • Loading branch information
axel-op committed Mar 5, 2024
1 parent 37efc9a commit f1ff9a2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,22 @@ jobs:
sudo docker exec test-container /bin/bash -c "cd $WORKSPACE/$TEST_DIR && git init"
sudo docker exec -e GITHUB_RUN_NUMBER=$GITHUB_RUN_NUMBER -e GITHUB_EVENT_PATH=$WORKSPACE/event.json -e INPUT_RELATIVEPATH=${{ matrix.path }} -e INPUT_CUSTOMANALYSISOPTIONS=${{ matrix.analysisoptions }} -e GITHUB_WORKSPACE=$WORKSPACE -e GITHUB_SHA=$GITHUB_SHA -e GITHUB_REPOSITORY=$GITHUB_REPOSITORY -e INPUT_MINANNOTATIONLEVEL=info -e INPUT_GITHUBTOKEN=${{ secrets.GITHUB_TOKEN }} test-container /bin/bash -c "/dart_package_analyzer"
test-subdirectory:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build container
run: sudo docker build --quiet -f $DOCKERFILE -t $IMAGE .
- name: Run tests
run: |
sudo docker run -d -t --name test-container $IMAGE
sudo docker exec test-container /bin/bash -c "mkdir --parents $WORKSPACE/git-root/"
sudo docker cp ${GITHUB_WORKSPACE}/$TEST_DIR/. test-container:$WORKSPACE/git-root/$TEST_DIR
sudo docker cp ${GITHUB_EVENT_PATH} test-container:$WORKSPACE/event.json
sudo docker exec test-container /bin/bash -c "cd $WORKSPACE/git-root && git init"
sudo docker exec -e GITHUB_RUN_NUMBER=$GITHUB_RUN_NUMBER -e GITHUB_EVENT_PATH=$WORKSPACE/event.json -e INPUT_RELATIVEPATH=$WORKSPACE/git-root/$TEST_DIR -e GITHUB_WORKSPACE=$WORKSPACE -e GITHUB_SHA=$GITHUB_SHA -e GITHUB_REPOSITORY=$GITHUB_REPOSITORY -e INPUT_MINANNOTATIONLEVEL=info -e INPUT_GITHUBTOKEN=${{ secrets.GITHUB_TOKEN }} test-container /bin/bash -c "/dart_package_analyzer"
test-pubspec-error:
runs-on: ubuntu-latest

Expand Down

0 comments on commit f1ff9a2

Please sign in to comment.