Skip to content

Commit

Permalink
ci: replace travis by github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
EliuX committed Dec 10, 2024
1 parent f68b23d commit 8cfa49c
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 29 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Serverless Migrate Plugin CI

on:
push:
branches: [ feature/update-readme-custom-migrate ]
pull_request:
branches: [ feature/update-readme-custom-migrate ]
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies for CI
run: npm ci

- name: Link package
run: |
cd ${GITHUB_WORKSPACE}/example
npm link serverless-migrate-plugin
- name: Build and test
run: |
npm run create
npm run up
npm run down
npm run list
echo It is all good man!
cd -
- name: Deploy to npm
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
PACKAGE_NAME: serverless-migrate-plugin
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Serverless plugin for migrate
==============================
[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com)
[![serverless](https://badges.serverless.com/v3.svg)](https://www.serverless.com)
[![npm version](https://badge.fury.io/js/serverless-migrate-plugin.svg)](https://badge.fury.io/js/serverless-migrate-plugin)

This is a plugin for the [Serverless][serverless-web] framework that allows you to manage and run database-agnostic
Expand Down

0 comments on commit 8cfa49c

Please sign in to comment.