From df42a0504e94e95986f0eb7fa8551a9f6204e115 Mon Sep 17 00:00:00 2001 From: YiiChou Date: Fri, 16 Sep 2022 23:04:10 +0800 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..32af4c0 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,23 @@ +name: Main + +on: [push] + +jobs: + test: + runs-on: ubuntu-latest + + env: + RAILS_ENV: test + GEMFILE_RUBY_VERSION: 2.7.6 + + steps: + - uses: actions/checkout@v2 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.7 + bundler-cache: true + + - name: Run tests + run: bundle exec rspec