2021-05-11 16:38:46 +00:00
|
|
|
name: Default actions for all branches
|
2021-05-11 16:37:57 +00:00
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
Unit-Test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
|
|
|
|
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
|
|
|
|
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
|
|
|
|
- name: Install packages
|
|
|
|
run: npm ci
|
2021-05-11 16:39:21 +00:00
|
|
|
- name: Run unit tests
|
2021-05-11 16:37:57 +00:00
|
|
|
run: npm run test
|
|
|
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|