Updated esw version #934
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: dev | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [master] | |
push: | |
branches: [master, 'branch-*'] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: coursier/setup-action@v1 | |
with: | |
jvm: temurin:1.17 | |
apps: sbt sbtn | |
- uses: coursier/cache-action@v6 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "20.9.0" | |
registry-url: "https://registry.npmjs.org" | |
- name: Cache ~/.npm | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Tests | |
run: npm run test:ci | |
- name: Build - Example App | |
working-directory: ./example | |
run: | | |
npm ci | |
npm run build | |
- name: Selenium Test | |
run: sbt -Dprod.publish=true -DgenerateStoryReport=true -DRTM_PATH=./RTM -DOUTPUT_FILE=/testStoryMapping.txt clean test | |
- name: Generate RTM | |
if: always() | |
continue-on-error: true | |
run: | | |
sh rtm.sh | |
- name: Upload RTM | |
if: always() | |
continue-on-error: true | |
uses: actions/upload-artifact@v3 | |
with: | |
name: RTM | |
path: ./RTM | |
- name: Upload Coverage | |
if: always() | |
continue-on-error: true | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Coverage | |
path: ./coverage | |
- name: Notify slack | |
if: always() | |
continue-on-error: true | |
uses: kpritam/slack-job-status-action@v1 | |
with: | |
job-status: ${{ job.status }} | |
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }} | |
channel: ci-dev |