Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Commit

Permalink
Merge pull request #3 from kachick/improve-ci
Browse files Browse the repository at this point in the history
Run CI even if the PRs
  • Loading branch information
kachick authored May 13, 2022
2 parents 9030e52 + 4b1ba10 commit 1c6731b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: Test & Deploy
name: Deploy products
on:
push:
branches: [ main ]
paths:
- 'src/**'
- 'tests/**'
- 'docs/**'
- 'elm.json'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/test_and_deploy.yml'
- '.github/workflows/deploy_products.yml'
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -20,8 +19,6 @@ jobs:
elm-version: 0.19.1
- name: install npm dependencies
run: npm install
- name: Test
run: ./node_modules/elm-test/bin/elm-test
- run: elm make src/Main.elm --output=docs/main.js
- name: git setting
run: |
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test
on:
push:
branches: [ main ]
paths:
- 'src/**'
- 'tests/**'
- 'docs/**'
- 'elm.json'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/test.yml'
pull_request:
paths:
- 'src/**'
- 'tests/**'
- 'docs/**'
- 'elm.json'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/test.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: jorelali/setup-elm@v3
with:
elm-version: 0.19.1
- name: install npm dependencies
run: npm install
- name: Test
run: ./node_modules/elm-test/bin/elm-test

0 comments on commit 1c6731b

Please sign in to comment.