Skip to content

Commit

Permalink
Move from Travis CI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Nov 8, 2020
1 parent ff54aac commit 68c305a
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 30 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,40 @@
name: Test
on:
push:
pull_request:
env:
FORCE_COLOR: 2
jobs:
full:
name: Node.js 15 Full
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2-beta
with:
node-version: 15
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Run tests
run: yarn test
short:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 14
- 12
name: Node.js ${{ matrix.node-version }} Quick
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Run unit tests
run: npx jest
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

5 changes: 1 addition & 4 deletions package.json
Expand Up @@ -13,8 +13,7 @@
"postcss-plugin"
],
"scripts": {
"lint": "eslint-ci . bin/*",
"test": "jest-ci --coverage && npm run lint && size-limit"
"test": "jest --coverage && eslint . bin/* && size-limit"
},
"main": "lib/autoprefixer.js",
"bin": "bin/autoprefixer",
Expand Down Expand Up @@ -45,7 +44,6 @@
"@size-limit/preset-small-lib": "4.7.0",
"clean-publish": "^1.1.8",
"eslint": "^7.13.0",
"eslint-ci": "^1.0.0",
"eslint-config-standard": "^16.0.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.1.0",
Expand All @@ -59,7 +57,6 @@
"fs-extra": "^9.0.1",
"husky": "^4.3.0",
"jest": "^26.6.3",
"jest-ci": "^0.1.1",
"lint-staged": "^10.5.1",
"postcss": "^8.1.6",
"size-limit": "^4.7.0"
Expand Down
21 changes: 1 addition & 20 deletions yarn.lock
Expand Up @@ -1755,12 +1755,7 @@ ci-info@2.0.0, ci-info@^2.0.0:
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46"
integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==

ci-job-number@^0.3.0:
version "0.3.1"
resolved "https://registry.yarnpkg.com/ci-job-number/-/ci-job-number-0.3.1.tgz#4354e45bb3ed5a7301f09358d2876d510d4a570e"
integrity sha512-OfY2Cg+mTqZz7lWOxONGbAXVZNNWPSiyGtOpAjYHEVTXIae8lGCOg3cDfJpPh8zcl+2CqItOsxbvH6ueV+QOmw==

ci-job-number@^1.0.0, ci-job-number@^1.2.2:
ci-job-number@^1.2.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/ci-job-number/-/ci-job-number-1.2.2.tgz#f4e5918fcaeeda95b604f214be7d7d4a961fe0c0"
integrity sha512-CLOGsVDrVamzv8sXJGaILUVI6dsuAkouJP/n6t+OxLPeeA4DDby7zn9SB6EUpa1H7oIKoE+rMmkW80zYsFfUjA==
Expand Down Expand Up @@ -2754,13 +2749,6 @@ eslint-ast-utils@^1.1.0:
lodash.get "^4.4.2"
lodash.zip "^4.2.0"

eslint-ci@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/eslint-ci/-/eslint-ci-1.0.0.tgz#6bcb238c45d2bf522fad50ad190bc00a206fe2df"
integrity sha512-8Itb/739gpX11nqvWg6kkpge7NwS1o+SkhfFAItfvH9/i5IoY6NLKKKzIagHakT2WmMdnq4HfcymYh/0NGvAVA==
dependencies:
ci-job-number "^0.3.0"

eslint-config-prettier@~6.11.0:
version "6.11.0"
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-6.11.0.tgz#f6d2238c1290d01c859a8b5c1f7d352a0b0da8b1"
Expand Down Expand Up @@ -4370,13 +4358,6 @@ jest-changed-files@^26.6.2:
execa "^4.0.0"
throat "^5.0.0"

jest-ci@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/jest-ci/-/jest-ci-0.1.1.tgz#059dea3f53bdf6cf4f143a3e68913e7b07794478"
integrity sha512-DqTzVLKoBUIzEY3L3aR0jI6F5YU78IDyRjARfo10ScYluBjFAe2UKF5bg1W1gwO05gggQNWhCMqYjcC1Y3RtRA==
dependencies:
ci-job-number "^1.0.0"

jest-cli@^26.6.3:
version "26.6.3"
resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-26.6.3.tgz#43117cfef24bc4cd691a174a8796a532e135e92a"
Expand Down

0 comments on commit 68c305a

Please sign in to comment.