Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
ecea0e5a
Unverified
Commit
ecea0e5a
authored
4 years ago
by
Mike McQuaid
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #7389 from jonchang/checkout-v2
workflows: don't use actions/checkout
parents
4b004036
cdf99e68
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/tests.yml
+10
-28
10 additions, 28 deletions
.github/workflows/tests.yml
with
10 additions
and
28 deletions
.github/workflows/tests.yml
+
10
−
28
View file @
ecea0e5a
...
...
@@ -14,9 +14,6 @@ jobs:
matrix
:
os
:
[
ubuntu-latest
,
macOS-latest
]
steps
:
-
name
:
Set up Git repository
uses
:
actions/checkout@v1
-
name
:
Set up Homebrew PATH
run
:
|
if [ "$RUNNER_OS" = "Linux" ]; then
...
...
@@ -27,28 +24,14 @@ jobs:
-
name
:
Set up Homebrew
run
:
|
cd $(brew --repo)
rm -rf $GITHUB_WORKSPACE
ln -s $PWD $GITHUB_WORKSPACE
git fetch --tags origin ${{github.sha}}
git checkout --force -B master FETCH_HEAD
brew update-reset Library/Taps/homebrew/homebrew-core
if [ "$RUNNER_OS" = "Linux" ]; then
HOMEBREW_REPOSITORY=/home/linuxbrew/.linuxbrew/Homebrew
sudo mkdir -p "$HOMEBREW_REPOSITORY/Library/Taps"
mv "$HOMEBREW_REPOSITORY/Library/Taps" "$PWD/Library"
sudo rm -rf "$HOMEBREW_REPOSITORY"
sudo ln -sf "$PWD" "$HOMEBREW_REPOSITORY"
cd /home/linuxbrew/.linuxbrew
sudo mkdir -p bin etc include lib opt sbin share var/homebrew/linked Cellar
sudo ln -sf ../Homebrew/bin/brew /home/linuxbrew/.linuxbrew/bin/
sudo chown -R "$USER" /home/linuxbrew
brew update-reset Homebrew/Library/Taps/homebrew/homebrew-core
else
HOMEBREW_REPOSITORY="$(brew --repo)"
mv "$HOMEBREW_REPOSITORY/Library/Taps" "$PWD/Library"
sudo rm -rf "$HOMEBREW_REPOSITORY"
sudo ln -sf "$PWD" "$HOMEBREW_REPOSITORY"
brew update-reset Library/Taps/homebrew/homebrew-core
sudo chown -R "$USER" $(brew --prefix)
fi
-
name
:
Set up Ruby
...
...
@@ -76,7 +59,7 @@ jobs:
brew install-bundler-gems
# Check for uncommitted gems
git
-C $(brew --repo)
diff --stat --exit-code Library/Homebrew/vendor/bundle/ruby
git diff --stat --exit-code Library/Homebrew/vendor/bundle/ruby
if [ "$RUNNER_OS" = "Linux" ]; then
# Fix permissions for 'brew tests'
...
...
@@ -87,7 +70,6 @@ jobs:
run
:
|
# Install taps needed for 'brew tests' and 'brew man'
export HOMEBREW_NO_AUTO_UPDATE=1
sudo chown -R "$USER" Library/Taps
brew tap homebrew/bundle
brew tap homebrew/services
if [ "$RUNNER_OS" = "macOS" ]; then
...
...
@@ -151,7 +133,7 @@ jobs:
-
name
:
Run vale for docs linting
run
:
|
brew install vale
vale
$(brew --repo)/
docs/
vale docs/
-
name
:
Build Docker image
if
:
matrix.os == 'ubuntu-latest'
...
...
@@ -163,7 +145,7 @@ jobs:
run
:
|
if [ "$RUNNER_OS" = "Linux" ]; then
docker-compose -f Dockerfile.yml run --rm -v $GITHUB_WORKSPACE:/tmp/test-bot sut
docker tag brew_sut brew
docker tag
home
brew_sut brew
else
brew test-bot
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment