diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 61fe51652..7efbc21a2 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -13,13 +13,13 @@ jobs: - name: Install required dependencies run: | apt update - apt install -y sudo - sudo apt install -y git + apt install --yes sudo + sudo apt install --yes git # workaround for https://github.com/actions/runner/issues/2033 - name: ownership workaround run: git config --global --add safe.directory '*' - name: Install dotnet sdk - run: sudo apt install -y dotnet6 + run: sudo apt install --yes dotnet6 - name: Compile the conventions solution run: dotnet build --configuration Release conventions.sln - name: Compile F# scripts @@ -45,7 +45,7 @@ jobs: sudo apt install --yes curl - name: Setup .NET - run: apt install -y dotnet6 + run: apt install --yes dotnet6 - name: Run tests to validate F# scripts run: dotnet test src/FileConventions.Test/FileConventions.Test.fsproj @@ -151,7 +151,7 @@ jobs: - name: Change file permissions # We need this step so we can change the files using `npx prettier --write` in the next step. # Otherwise we get permission denied error in the CI. - run: sudo chmod 777 -R . + run: sudo chmod 777 --recursive . - name: Run "prettier" to check the style of our TypeScript code run: | sudo npx prettier --quote-props=consistent --write './**/*.ts'