Skip to content

Commit

Permalink
chore(test): test github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
prb28 committed Nov 19, 2023
1 parent 7352ee1 commit 8ecc09f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 65 deletions.
63 changes: 0 additions & 63 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Setup xvfb (Linux)
run: sudo apt-get update; sudo apt-get install -y xvfb libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0 libopenal-dev libalut-dev libsdl2-2.0-0 libpng-dev mpeg2dec libmpeg2-4 libmpeg2-4-dev libsdl2-dev libsdl2-ttf-2.0-0 libopenal-dev libopenal-data libopenal1
if: runner.os == 'Linux'
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
Expand All @@ -37,15 +34,8 @@ jobs:
node-version: 20.x
- run: npm install
- run: npm run test-compile
- name: xvfb test
uses: GabrielBB/[email protected]
with:
run: npm run test
options: -screen 0 1600x1200x24
if: runner.os == 'Linux'
- name: test
run: npm run test
if: runner.os != 'Linux'
env:
DISABLE_COVERAGE: true
- name: Rename Unit Test Results
Expand All @@ -57,56 +47,3 @@ jobs:
with:
name: Unit Test Results
path: test-results*.xml
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
if: runner.os == 'Linux'
# - name: Setup tmate session
# if: success() || failure()
# uses: mxschmitt/action-tmate@v3
# package:
# needs: build
# # The type of runner that the job will run on
# strategy:
# matrix:
# os: [ubuntu-latest]
# runs-on: ${{ matrix.os }}

# # Steps represent a sequence of tasks that will be executed as part of the job
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Install Node.js
# uses: actions/setup-node@v1
# with:
# node-version: 20.x
# - run: npm install
# - name: Install vsce
# run: npm install -g vsce
# - run: npm run vscode:prepublish
# - run: vsce package
# - uses: actions/upload-artifact@v2
# if: ${{ success() }}
# with:
# name: Extension
# path: ./*.vsix

# publish-test-results:
# name: "Publish Unit Tests Results"
# needs: build
# runs-on: ubuntu-latest
# # the build-and-test job might be skipped, we don't need to run this job then
# if: success() || failure()

# steps:
# - name: Download Artifacts
# uses: actions/download-artifact@v2
# with:
# path: artifacts

# - name: Publish Unit Test Results
# uses: EnricoMi/publish-unit-test-result-action/composite@v1
# with:
# files: artifacts/**/*.xml
2 changes: 1 addition & 1 deletion src/test/integrationfsuae.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import path = require('path');
import { VASMCompiler } from '../vasm';
import { VLINKLinker } from '../vlink';

describe.only('FS-UAE Integration test', () => {
describe('FS-UAE Integration test', () => {
const PROJECT_ROOT = Path.join(__dirname, '..', '..').replace(/\\+/g, '/');
const DEBUG_ADAPTER = Path.join(PROJECT_ROOT, 'out', 'debugAdapter.js').replace(/\\+/g, '/');
const launchArgs = <LaunchRequestArguments>{
Expand Down
2 changes: 1 addition & 1 deletion src/test/suite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function run(): Promise<void> {
}
},
color: true,
timeout: 120000
timeout: 60000
});

// Add all files to the test suite
Expand Down

0 comments on commit 8ecc09f

Please sign in to comment.