Skip to content

Commit

Permalink
build: add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kokororin committed Apr 28, 2023
1 parent 6b95cd8 commit 7413e3f
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 58 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [7.0, 8.1]
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
tools: composer

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Cache yarn deps
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install libsecret-1-dev
yarn install
- name: Run Tests
run: npm test
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ node_modules
.vscode
.vscode-test
*.md
.travis.yml
.github
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

28 changes: 0 additions & 28 deletions appveyor.yml

This file was deleted.

0 comments on commit 7413e3f

Please sign in to comment.