File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -26,26 +26,29 @@ jobs:
26
26
uses : actions/checkout@v3
27
27
28
28
- name : Use Node.js ${{ matrix.node-version }}
29
- uses : actions/setup-node@v2
29
+ uses : actions/setup-node@v4
30
30
with :
31
31
node-version : ${{ matrix.node-version }}
32
- cache : " npm"
32
+ cache : ' npm'
33
33
34
34
- name : Use Ruby 3.3.0
35
35
uses : ruby/setup-ruby@v1
36
36
with :
37
37
ruby-version : 3.3.0
38
38
bundler-cache : true
39
39
40
- - name : Limpar cache do Bundler
40
+ - name : Clean Bundler cache
41
41
run : bundle clean --force
42
42
43
43
- name : Install dependencies
44
- run : bundle install && npm install
44
+ run : |
45
+ bundle install
46
+ npm ci # usa o package-lock.json para evitar problemas de cache
47
+ env :
48
+ NODE_ENV : test
45
49
46
50
- name : Run Migrations
47
- run : |
48
- bundle exec ruby ./src/main/config/migrations.rb
51
+ run : bundle exec ruby ./src/main/config/migrations.rb
49
52
env :
50
53
DRIVER : postgres
51
54
POSTGRES_DB : ruby-grape-clean-api
You can’t perform that action at this time.
0 commit comments