Skip to content

Commit 115fb2f

Browse files
committed
Remove CI code that fetches foobara from github
1 parent 642a389 commit 115fb2f

File tree

2 files changed

+22
-82
lines changed

2 files changed

+22
-82
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -14,62 +14,6 @@ jobs:
1414
timeout-minutes: 3
1515
steps:
1616
- uses: actions/checkout@v3
17-
- name: setup ruby version and foobara branch and sha1
18-
run: |
19-
foobara_entry=`grep -A2 -m 1 ' remote: foobara$' Gemfile.lock`
20-
regex="revision: ([0-9a-f]+)\s+branch: ([-_[:alnum:]]+)$"
21-
22-
if [[ $foobara_entry =~ $regex ]]; then
23-
foobara_sha1="${BASH_REMATCH[1]}"
24-
foobara_branch="${BASH_REMATCH[2]}"
25-
26-
echo foobara_sha1=$foobara_sha1 >> "$GITHUB_ENV"
27-
echo foobara_branch=$foobara_branch >> "$GITHUB_ENV"
28-
else
29-
echo "$foobara_entry doesn't match $regex" >&2
30-
fi
31-
32-
echo ruby_version=`cat .ruby-version` >> "$GITHUB_ENV"
33-
- name: cache foobara
34-
id: cache-foobara
35-
uses: actions/cache@v3
36-
env:
37-
cache-name: cache-foobara
38-
with:
39-
path: ~/work/typescript-react-command-form-generator/foobara
40-
key: ${{ env.cache-name }}-${{ env.foobara_branch }}-${{ env.foobara_sha1 }}
41-
restore-keys: |
42-
${{ env.cache-name }}-${{ env.foobara_branch }}-
43-
${{ env.cache-name }}-
44-
- if: ${{ steps.cache-foobara.outputs.cache-hit != 'true' }}
45-
name: clone or pull foobara
46-
run: |
47-
set -e
48-
cd ..
49-
if [ -d foobara ]; then
50-
echo pulling
51-
cd foobara
52-
ssh-agent sh -c 'echo "${{ secrets.FOOBARA_KEY }}" | ssh-add - &&
53-
git fetch --depth=1 origin $foobara_sha1 &&
54-
if git rev-parse --verify -q $foobara_branch; then
55-
git checkout -q $foobara_branch
56-
git reset --hard $foobara_sha1
57-
else
58-
git branch $foobara_branch $foobara_sha1
59-
git checkout -q $foobara_branch
60-
fi'
61-
else
62-
echo cloning
63-
ssh-agent sh -c 'echo "${{ secrets.FOOBARA_KEY }}" | ssh-add - &&
64-
git clone -b $foobara_branch --depth=1 [email protected]:foobara/foobara.git'
65-
fi
66-
- name: symlink foobara and point bundler at it
67-
run: |
68-
set -e
69-
mkdir -p .bundle
70-
echo -e "---\nBUNDLE_LOCAL__FOOBARA: '/home/runner/work/typescript-react-command-form-generator/foobara'" > .bundle/config
71-
mkdir ../../foobara
72-
ln -s ../../typescript-react-command-form-generator/foobara ../../foobara/foobara
7317
- name: Set up Ruby
7418
uses: ruby/setup-ruby@v1
7519
with:

Gemfile.lock

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@ GEM
1313
byebug (11.1.3)
1414
coderay (1.1.3)
1515
diff-lcs (1.5.1)
16-
docile (1.4.0)
16+
docile (1.4.1)
1717
ffi (1.17.0-x86_64-linux-gnu)
18-
foobara (0.0.1)
18+
foobara (0.0.10)
1919
foobara-util
20-
foobara-files-generator (0.0.1)
20+
foobara-files-generator (0.0.3)
2121
foobara
22-
foobara-rubocop-rules (0.0.3)
22+
foobara-rubocop-rules (0.0.4)
2323
rubocop
2424
rubocop-rspec
2525
foobara-spec-helpers (0.0.3)
2626
foobara-util
27-
foobara-typescript-remote-command-generator (0.0.1)
27+
foobara-typescript-remote-command-generator (0.0.6)
2828
foobara
2929
foobara-files-generator
30-
foobara-util (0.0.4)
30+
foobara-util (0.0.6)
3131
formatador (1.1.0)
3232
guard (2.18.1)
3333
formatador (>= 0.2.4)
@@ -43,7 +43,7 @@ GEM
4343
guard (~> 2.1)
4444
guard-compat (~> 1.1)
4545
rspec (>= 2.99.0, < 4.0)
46-
json (2.7.2)
46+
json (2.7.4)
4747
language_server-protocol (3.17.0.3)
4848
listen (3.9.0)
4949
rb-fsevent (~> 0.10, >= 0.10.3)
@@ -54,8 +54,8 @@ GEM
5454
notiffany (0.1.3)
5555
nenv (~> 0.1)
5656
shellany (~> 0.0)
57-
parallel (1.25.1)
58-
parser (3.3.3.0)
57+
parallel (1.26.3)
58+
parser (3.3.5.0)
5959
ast (~> 2.4.1)
6060
racc
6161
pry (0.14.2)
@@ -64,59 +64,55 @@ GEM
6464
pry-byebug (3.10.1)
6565
byebug (~> 11.0)
6666
pry (>= 0.13, < 0.15)
67-
racc (1.8.0)
67+
racc (1.8.1)
6868
rainbow (3.1.1)
6969
rake (13.2.1)
7070
rb-fsevent (0.11.2)
7171
rb-inotify (0.11.1)
7272
ffi (~> 1.0)
7373
regexp_parser (2.9.2)
74-
rexml (3.3.0)
75-
strscan
7674
rspec (3.13.0)
7775
rspec-core (~> 3.13.0)
7876
rspec-expectations (~> 3.13.0)
7977
rspec-mocks (~> 3.13.0)
80-
rspec-core (3.13.0)
78+
rspec-core (3.13.2)
8179
rspec-support (~> 3.13.0)
82-
rspec-expectations (3.13.1)
80+
rspec-expectations (3.13.3)
8381
diff-lcs (>= 1.2.0, < 2.0)
8482
rspec-support (~> 3.13.0)
85-
rspec-its (1.3.0)
83+
rspec-its (1.3.1)
8684
rspec-core (>= 3.0.0)
8785
rspec-expectations (>= 3.0.0)
88-
rspec-mocks (3.13.1)
86+
rspec-mocks (3.13.2)
8987
diff-lcs (>= 1.2.0, < 2.0)
9088
rspec-support (~> 3.13.0)
9189
rspec-support (3.13.1)
92-
rubocop (1.64.1)
90+
rubocop (1.67.0)
9391
json (~> 2.3)
9492
language_server-protocol (>= 3.17.0)
9593
parallel (~> 1.10)
9694
parser (>= 3.3.0.2)
9795
rainbow (>= 2.2.2, < 4.0)
98-
regexp_parser (>= 1.8, < 3.0)
99-
rexml (>= 3.2.5, < 4.0)
100-
rubocop-ast (>= 1.31.1, < 2.0)
96+
regexp_parser (>= 2.4, < 3.0)
97+
rubocop-ast (>= 1.32.2, < 2.0)
10198
ruby-progressbar (~> 1.7)
10299
unicode-display_width (>= 2.4.0, < 3.0)
103-
rubocop-ast (1.31.3)
100+
rubocop-ast (1.32.3)
104101
parser (>= 3.3.1.0)
105102
rubocop-rake (0.6.0)
106103
rubocop (~> 1.0)
107-
rubocop-rspec (3.0.1)
104+
rubocop-rspec (3.2.0)
108105
rubocop (~> 1.61)
109106
ruby-progressbar (1.13.0)
110107
shellany (0.0.1)
111108
simplecov (0.22.0)
112109
docile (~> 1.1)
113110
simplecov-html (~> 0.11)
114111
simplecov_json_formatter (~> 0.1)
115-
simplecov-html (0.12.3)
112+
simplecov-html (0.13.1)
116113
simplecov_json_formatter (0.1.4)
117-
strscan (3.1.0)
118-
thor (1.3.1)
119-
unicode-display_width (2.5.0)
114+
thor (1.3.2)
115+
unicode-display_width (2.6.0)
120116

121117
PLATFORMS
122118
x86_64-linux

0 commit comments

Comments
 (0)