Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
runs-on: ubuntu-latest

steps:

- name: Github Info
run: |
echo "GITHUB_ACTION: $GITHUB_ACTION"
Expand All @@ -34,7 +35,15 @@ jobs:
with:
node-version: "12.16.1"

- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Free disk space
run: |
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean
docker rmi $(docker image ls -aq)
df -h

- name: check package-lock
run: |
Expand Down Expand Up @@ -199,7 +208,7 @@ jobs:
docker exec mongo mongo --eval 'rs.initiate({_id:"rs0", members: [{"_id":1, "host":"localhost:27017"}]})'
docker exec mongo mongo --eval 'rs.status()'

- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Cache cypress
id: cache-cypress
Expand Down Expand Up @@ -245,10 +254,10 @@ jobs:

build-image-pr:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
if: github.event.pull_request.head.repo.full_name == github.repository

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Free disk space
run: |
Expand Down Expand Up @@ -356,7 +365,7 @@ jobs:
needs: test

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Restore build
uses: actions/download-artifact@v1
Expand Down Expand Up @@ -409,7 +418,7 @@ jobs:
IMAGE: "rocketchat/rocket.chat"

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: Restore build
uses: actions/download-artifact@v1
Expand Down