mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
Split CI into multiple jobs to get clearer results
This commit is contained in:
parent
6b59a58ea3
commit
d6c1f3bfca
60
.github/workflows/ci.yml
vendored
60
.github/workflows/ci.yml
vendored
@ -1,4 +1,3 @@
|
|||||||
# This is a basic workflow to help you get started with Actions
|
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@ -13,39 +12,44 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
# The type of runner that the job will run on
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
node-version: [16.13.1]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
||||||
- 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 }}."
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: echo "The ${{ github.repository }} repository has been cloned to the runner."
|
- name: Use Node.js 16.13.1
|
||||||
- run: echo "The workflow is now ready to test your code on the runner."
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: 16.13.1
|
||||||
|
cache: 'npm'
|
||||||
|
- name: Install npm dependencies
|
||||||
|
run: npm ci
|
||||||
|
- name: Build the production app
|
||||||
|
run: npm run build
|
||||||
|
lint:
|
||||||
|
name: Lint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Use Node.js 16.13.1
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: 16.13.1
|
||||||
|
cache: 'npm'
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Run unit tests
|
|
||||||
run: npm run test
|
|
||||||
- name: Run linter
|
- name: Run linter
|
||||||
run: npm run lint:report
|
run: npm run lint:report
|
||||||
- name: Build the web app
|
test:
|
||||||
run: npm run build
|
name: Test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
# Cannot build the electron app by default using ubuntu
|
steps:
|
||||||
# Wrapper command 'wine64' not found on the system. Consult your Linux distribution's package manager to determine how to install Wine.
|
- uses: actions/checkout@v2
|
||||||
# - name: Build the electron app
|
- name: Use Node.js 16.13.1
|
||||||
# run: ./package.sh
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
# Unable to properly run the cypress tests for now, they are throwing errors.
|
node-version: 16.13.1
|
||||||
# - name: Run the integration tests
|
cache: 'npm'
|
||||||
# run: npm run cy:test
|
- name: Install npm dependencies
|
||||||
|
run: npm ci
|
||||||
|
- name: Run linter
|
||||||
|
run: npm run test
|
||||||
|
Loading…
Reference in New Issue
Block a user