Skip to content

Instantly share code, notes, and snippets.

View jaysonmulwa's full-sized avatar
👤
Building

Jayson Mulwa jaysonmulwa

👤
Building
View GitHub Profile
@ArturT
ArturT / Jest-GitHub-Actions-JavaScript.md
Last active December 1, 2022 07:31
GitHub Actions config for NodeJS and Jest tests. Running parallel jobs for Jest test suite with https://knapsackpro.com/?utm_source=github&utm_medium=gist&utm_campaign=jest-on-github-actions&utm_content=sign_up

GitHub Actions config for running Jest tests with parallel jobs

@knapsack-pro/jest supports environment variables provided by GitHub Actions to run your tests. You have to define a few things in .github/workflows/main.yaml config file.

  • You need to set KNAPSACK_PRO_TEST_SUITE_TOKEN_JEST environment variable in GitHub repository Settings -> Secrets. See creating and using secrets in GitHub Actions.
  • You should create as many parallel jobs as you need with matrix.ci_node_total and matrix.ci_node_index properties. If your test suite is slow you should use more parallel jobs.

Below you can find config for GitHub Actions.

Video demo Jest and GitHub Actions

@njxqlus
njxqlus / Dockerfile
Created November 1, 2018 08:59
PHP + Oracle instantclient dockerfile
FROM php:fpm
# Install packages
RUN apt-get update
RUN apt-get install -y unzip
RUN apt-get install -y libaio1
# Oracle instantclient
ADD instantclient-basic-linux.x64-11.2.0.4.0.zip /tmp/
ADD instantclient-sdk-linux.x64-11.2.0.4.0.zip /tmp/
@adrianomelo
adrianomelo / gist:207c4da2f50744f04c9d
Created August 31, 2015 20:54
Simple expert system - Animal
% -*- mode: Prolog -*-
% (c) J. R. Fisher.
% http://www.csupomona.edu/~jrfisher/www/prolog_tutorial/2_17.html
% Animal identification rules
% To run, type go.
go :- hypothesize(Animal),
write('I guess that the animal is: '),
@yqt
yqt / Hightchart_show_extra_data.js
Created October 11, 2013 11:04
show extra data in tooltips of Highchart.
//live testing on http://jsfiddle.net/yqtted/9xKuR/
//shared tooltip version on http://jsfiddle.net/yqtted/WUMfB/
$(function () {
$('#container').highcharts({
series: [{
name: "line1",
composition: {
"data1": [129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4, 29.9, 71.5, 106.4]
},