From 9dc43d77c958577b8f26abc272ccffd0241d5a10 Mon Sep 17 00:00:00 2001 From: Kris Date: Mon, 5 Feb 2024 09:03:18 -0500 Subject: [PATCH] try actions --- .github/workflows/main.yml | 55 +++++++++----------------------------- 1 file changed, 12 insertions(+), 43 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 740ce9e..5f0c929 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,48 +7,17 @@ on: branches: [ master, develop, main ] jobs: - test: - # services: - # db: - # image: postgres:11 - # ports: ['5432:5432'] - # + container-test-job: runs-on: ubuntu-latest - + container: + image: node:18 + env: + NODE_ENV: development + ports: + - 80 + volumes: + - my_docker_volume:/volume_mount + options: --cpus 1 steps: - - uses: actions/checkout@v2 - - name: Setup Ruby - uses: ruby/setup-ruby@v1.171.0 - with: - ruby-version: 3.3.0 - self-hosted: true - - - uses: Borales/actions-yarn@v2.3.0 - with: - cmd: install - - - name: Install Dependencies - run: | - # sudo apt install -yqq libpq-dev - gem install bundler - - - name: Install Gems - run: | - bundle install - - - name: Prepare Database - run: | - bundle exec rails db:prepare - - - name: Run Tests - # env: - # DATABASE_URL: postgres://postgres:@localhost:5432/databasename - # RAILS_MASTER_KEY: ${{secrets.RAILS_MASTER_KEY}} - run: | - bundle exec rails test - - - name: Create Coverage Artifact - uses: actions/upload-artifact@v2 - with: - name: code-coverage - path: coverage/ + - name: Check for dockerenv file + run: (ls /.dockerenv && echo Found dockerenv) || (echo No dockerenv) \ No newline at end of file