Skip to content

A platform for community discussion. Free, open, simple.

Revert "DEV: Add smoke test to github actions (#8580)"

David Taylor007c44ec56b9
diff --git a/.github/workflows/smoke.yml b/.github/workflows/smoke.yml
deleted file mode 100644
index 6bc22c771dc..00000000000
--- a/.github/workflows/smoke.yml
+++ /dev/null
@@ -1,63 +0,0 @@
-name: SMOKE TEST
-
-on:
- push:
- branches:
- - master
- pull_request:
- branches-ignore:
- - 'tests-passed'
-
-jobs:
- smoke_test:
- name: "CORE"
- runs-on: ubuntu-latest
- timeout-minutes: 60
-
- steps:
- - uses: actions/checkout@master
- with:
- fetch-depth: 1
-
- - name: Install unbuffer
- run: sudo apt-get install -yqq expect
-
- - name: Boot dev image
- run: unbuffer d/boot_dev
-
- - name: Create script
- run: |
- mkdir tmp
- touch tmp/script.rb
- echo "u = User.new(username:'smoke_user', password:'P4ssw0rd', email:'[email protected]', admin:true)" >> tmp/script.rb
- echo "u.save!(validate: false)" >> tmp/script.rb
- echo "u.activate" >> tmp/script.rb
- echo "SiteSetting.wizard_enabled = false" >> tmp/script.rb
-
- - name: tmp
- run: sudo chown -R 1000:1000 .
-
- - name: Bundle
- run: unbuffer d/bundle install
-
- - name: Migrate
- run: unbuffer d/rake db:migrate
-
- - name: Run script
- run: unbuffer d/rails runner tmp/script.rb
-
- - name: Start Server
- run: unbuffer d/rails s &
-
- - name: Warm Up Server
- run: curl -I -A "Chrome" --retry 10 --retry-delay 1 --max-time 60 http://localhost:3000
-
- - name: Run smoke test
- run: unbuffer d/rake smoke:test
-
- - uses: actions/upload-artifact@v1
- if: failure()
- with:
- name: smoke-test-screenshots
- path: tmp/smoke-test-screenshots
-